How do i redirect like

how do i make a redirect like goes to a discord invite link? without like /discord.php or whatever it is, does anybody know?

(post withdrawn by author, will be automatically deleted in 24 hours unless flagged)

Iā€™m well confused.

you want that happens when you type:



i want
i dont know how to remove the .php

thanks ill look

1 Like

works! thanks @Ergastolator1 and @anon19508339 :smiley:


You could also use my htaccess script that rewrites most of the times PHP files, like this:

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php [NC,L]

what do you mean by rewrites most of the times php files?

After some times, with some htaccess scripts, the php file will not be rewritten. With mine, it will apply only on the root folder of the website, and not requesting any folder or file other than PHP files.

oh ok ill use it thank you

1 Like

can i write html in the discord.php file? like meta stuff

After the Location header, you must not put anything on it, or else it will throw an error!

oh ok thank you!

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.