How do I setup a .htaccess in a wampserver?
I have this as files structure
– www
-> mypage
–> views
–> …..
And I want to rewrite the url from localhost/mypage/views/user/index.php?page=register
to
localhost/mypage/register
I already be able to achieve that. But only if I put it inside www folder of Wamp.
I don’t want to put it in root of http://www.I want to put it in my mypage folder.
here is my rewrite rule i Used.
RewriteEngine On
RewriteRule ^woohoo/([^/.]*)$ /woohoo/views/users/index.php?page=$1 [L]
Please help me with this. I already search through the net. But they only show it to setup in www folder wamp.
Try this:
Put .htaccess file in
mypage