I have a URL which looks like
localhost/myapp/index.php?mod=user&page=createuser
I want the URL to look like
localhost/user/createuser
How do I do this with a htaccess file?
I have a URL which looks like
localhost/myapp/index.php?mod=user&page=createuser
I want the URL to look like
localhost/user/createuser
How do I do this with a htaccess file?
Try this
RewriteEngine on
RewriteRule ^myapp/(.+)/(.*) myapp/index.php?mod=$1&page=$2 [L]