- Code: Select all
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^([^/]+)/?([^/]+)/?$ /index.php?page=$1&subpage=$2 [QSA,L]
Im try to turn this URL > www.domain.com/page/subpage (the 'page' and 'subpage' are varibles)
Into this on the severside > www.domain.com/index.php?page=$page&subpage=$subpage
Ive been editing the above code for a while now and im getting nowhere . Thanks in advance if anyone can help me out.