Jump to content

index.php?id=example to /example


TheSky

Recommended Posts

I presume you are talking about using clean urls.

 

To do this you will need to ensure your server has the mod rewrite module enabled. Then all you need to do is add or alter your existing .htaccess file to allow for the modification:

 

add these into the .htaccess:

 

RewriteEngine On
RewriteRule ^([a-z]+)/([a-z\-]+)$ /$1/$2.php [L]

 

hope that helps get you started :)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.