apache - Htaccess redirect URL to Alias -
apache - Htaccess redirect URL to Alias -
i have next rewrite rule: rewriterule abc\.html$ index.php?page=1 [l]
if user attempts open index.php?page=1 redirect him 301 abc.html. i've tried following: rewriterule index\.php\?page=1$ abc.html [r=301,l]
it doesn't work. there solution this?
try:
rewritecond %{the_request} \ /+index\.php\?page=1(&|\ |$) rewriterule ^ /abc.html [l,r=301] apache .htaccess mod-rewrite
Comments
Post a Comment