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

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -