开发者

How to use mod_rewrite with Wordpress?

开发者 https://www.devze.com 2023-02-08 13:26 出处:网络
I\'m running a wordpress installation on the root dir of my website test.com Wordpress is using url\'s like: test.com/information/ and I also added some custom parameters like: test.com/information/?a

I'm running a wordpress installation on the root dir of my website test.com Wordpress is using url's like: test.com/information/ and I also added some custom parameters like: test.com/information/?about=product

I tried to use the mod-rewrite generator at http://www.generateit.net/mod-rewrite/ to change my custom urls to test.com/info开发者_JAVA百科rmation/about/product but keep receiving a wordpress 404 error.

Is there a solution to my problem?


All answers wrong. Login to admin area. On the left menu, under settings find permalinks. You can choose or add proper settings there.


I agree with @borayeris - Wordpress has it's own permalinks page under Settings - use that.


If you are already using pretty permalinks, make an about page then make it the parent page of all your product pages.

Or use the rule:

RewriteRule ^information/about/([^/]+)/?$ information/?about=$1 [L,NC]
0

精彩评论

暂无评论...
验证码 换一张
取 消