.htaccess - Simple RegeX going wrong -
i'm trying redirect 2 pages.
- /blog.php /blog/
and
- blog/?p=1 /blog/
i have 1 working now.
rewriterule ^blog\/$ blog.php rewriterule ^blog\/$ blog\/?p=1 [l]
can't figure out how combine these two.
can ?
you can use:
rewritecond %{query_string} ^p=1$ [nc] rewriterule ^blog/?$ blog/? [nc,r=301,l] rewriterule ^blog\.php$ blog/ [nc,r=301,l]
Comments
Post a Comment