• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Just a small thread how to remove .php extension from files URL.

Cornex

Web Developer
Staff member
Global Moderator
Joined
Jun 15, 2008
Messages
3,444
Solutions
5
Reaction score
1,166
Location
Sweden
Hello, i just put this and I'm sure it will help someone out.

First of all, you will ned a .htaccess file. Just create one!
Inside it, put this code:

PHP:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule (.*) $1.php [L]

IF you have 403 Forbidden when enter your website.
Open your apache httpd.conf file. Should be in your apache folder ofc.

Inside it, find this one:

Code:
AllowOverride All

OR MAYBE

AllowOverride None

Anyway, it should be "All" and over it just place this one:

PHP:
Options +FollowSymLinks +SymLinksIfOwnerMatch

So it should looks like:
Code:
Options +FollowSymLinks +SymLinksIfOwnerMatch
AllowOverride All

Well, thanks for me.
 
Last edited:
Back
Top