Tuesday, 15 April 2014

php - htaccess how to rewrite any url ending with /feed/ to specific page? -


If the URL rewrite logic can apply to WordPress, if any / feed / , all of them should get the parameters on a specific page.

I tried to do something like this

  RewriteRule ^ / feed? $ .s.php [L]  

RSS < & lt ;? Php print_r ($ _ GET); ? & Gt;

But keep refreshing the current page where the link is placed.

For example, go to

domain.com/browse/flowers/feed/

  domain.com/rss Php? Category = flowers & amp; 

should do something like this:

  Code> RewriteEngine On RewriteRule ^? / Browse /(.*) / feed /? $ .s.php? Category = $ 1 $ feed = on [L, NC, QSA]  

No comments:

Post a Comment