: Mod rewrite is not working or doing anything So I've used an online .htaccess editor and it's not working for some reason on my test server, here's the content of my .htaccess file. RewriteEngine
So I've used an online .htaccess editor and it's not working for some reason on my test server, here's the content of my .htaccess file.
RewriteEngine On
RewriteRule ^Page/([^/]*)/$ /?Page= [L]
I have also enabled the LoadModule rewrite_module modules/mod_rewrite.so on my WAMP server. Any help is much appreciated.
[Fri Aug 09 12:46:10.130887 2013] [core:alert] [pid 1424:tid 1532] [client 127.0.0.1:50725] C:/wamp/www/Website/.htaccess: RewriteRule: bad flag delimiters
EDIT: tried doing one on my own still having the same issue
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^Page/([a-zA-Z]+)/([0-9]+)/$ index.php?Page=
More posts by @Carla537
1 Comments
Sorted by latest first Latest Oldest Best
It seems from comments that you are wanting to redirect (I assume) ?Page=Home to /Page/Home/ rather than rewrite the other way round, as you are trying to do in your question?
In which case you would need to do something like:
RewriteCond %{QUERY_STRING} ^Page=(.*)$
RewriteRule .* /Page/%1/? [R=301,L]
NB: The ? at the end of the RewriteRule substitution removes the original querystring.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2025 All Rights reserved.