- Where Developers Learn, Share, & Build Careers
On my blog (which I am in the process of redesigning content in a more efficient way), I have
From to handle a simple redirection RewriteRule setup for In .htaccess: That only bankya works now what I have to do, rewrite to in .htaccess: The first rule I can do is to finish the job, but this query does not have to be springs, Instead, like ... Add a question mark at the end of your goal in your RewriteRule: http://new.kn3rdmeister.com/blog.php
http://new.kn3rdmeister.com/category/blog/ (And also works backwards too)
RewriteEngine On RewriteRule ^ blog / .php $ / category / blog / [R = 301, L] rewriteille ^ category / blog /? $ Blog.php [L] ...
/blog.php ? Pagenum = x
/ category / blog / page / x /
... RewityCand% {THE_REQUEST} ^ (get | post | top) \ blog \ .php \? Pagenum = ([0-9] *) \ HTTP / RewriteRule ^ blog \ .php $ / category / blog / page /% 2 / [R = 301, L] rewritable ^ category / blog / page / ([0- 9 ] +) / $ Blog.php [l]
/blog.php?pagenum=2 is equivalent to the example
< Code> rewrite rule ^ blog / .php $ / category / blog / page /% 2 /? [R = 301, L]
Comments
Post a Comment