How do i redirect like sown.rip/discord?

how do i make a redirect like sown.rip/discord 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:

sown.rip/discord

or:

sown.rip/discord.php

?

i want sown.rip/discord
i dont know how to remove the .php

thanks ill look

1 Like

works! thanks @Ergastolator1 and @BayoDino :smiley:

2 Likes

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.