/ Published in: PHP

write this in your .htaccess
links are going to look like this
yourpage.de/yourVariableValue1/yourVariableValue2/
[NC] will remove the case sensitivity of your static words like "admin"
its going to work, even if you type
yourpage.de/adMIN
links are going to look like this
yourpage.de/yourVariableValue1/yourVariableValue2/
[NC] will remove the case sensitivity of your static words like "admin"
its going to work, even if you type
yourpage.de/adMIN
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
RewriteEngine on RewriteRule ^admin/?$ admin.php [NC] RewriteRule ^admin/([^/.]+)/?$ admin.php?action=$1 [NC] RewriteRule ^([^/.]+)/?$ index.php?a=$1 [L] RewriteRule ^([^/.]+)/([^/.]+)/?$ index.php?a=$1&b=$2 [L] RewriteRule ^([^/.]+)/([^/.]+)/([^/.]+)/?$ index.php?a=$1&b=$2&c=$3 [L]
Comments
