I am in the process of rebuilding a website. I’ve had to reverse engineer a lot of it and am now about to replace the old site. I had a look at the .htaccess file on the server and it has code in it that I don’t understand. I would like some help understanding what each line does if anyone is familiar with the code used in .htaccess files.
Here is the code:
Options +FollowSymlinks <IfModule mod_rewrite.c> RewriteEngine on RewriteBase / RewriteRule ^(.+\.!)/$ $1 [R=301,L] RewriteRule ^([A-Za-z0-9-]+)(/?)$ /index.php?p=$1 [L] RewriteRule ^([A-Za-z0-9-]+)/([A-Za-z0-9-]+)(/?)$ /index.php?p=$1&v=$2 [L] </IfModule>
Any help would be appreciated.
- The topic ‘.htaccess decipher request’ is closed to new replies.