- Code: Select all
RewriteRule ^do/([A-Za-z0-9-]+)/([A-Za-z0-9-]+)$ /index.php?do=$1&type=$2 [QSA,L]
It's not showing the fllowing url:
do/users/update_profile
I want to know what i have to put in the regx pattern to accept the underscores.
RewriteRule ^do/([A-Za-z0-9-]+)/([A-Za-z0-9-]+)$ /index.php?do=$1&type=$2 [QSA,L]
RewriteRule ^do/([A-Za-z0-9_-]+)/([A-Za-z0-9_-]+)$ /index.php?do=$1&type=$2 [QSA,L]
Return to Friendly URLs with Mod_Rewrite
Users browsing this forum: No registered users and 17 guests