i have a problem about permalinks in wordpress; For example i have 2 category (cat1 and cat2). And there is two posts (post1 and post2). post1 is in categroy cat1 and post2 is in categroy cat2. In permalink Settings i'm using Custom Structure like this: /%category%/%postname%/ Code (markup): So, url of post1 is "http://mysite.com/cat1/post1/" and again url of post2 "http://mysite.com/cat2/post2/" Now i wanna do something like this; when i wanna call a post in cat1 its url , its url: "http://mysite.com/cat1/post1/" but when a post in cat2 i want its url to be like this: "http://mysite.com/something/cat1/post1/" So i wanna write different rewrite rules for different categories, something like that. How can i write a permalink code for wordpress. Or do i have to edit .htaccess file. if so what kind of codes can i write in my .htaccess file. please help me!
Give cat2 a parent category called "something". Now when you write a post you choose cat2 from the category list (no need to check both of them, just cat2 will do) but WP will know that cat2 is a child of "something" and give you the URL mysite.com/something/cat2/postname
Thank you for your help but my problem is not simple like this. it can be ok for the url "mysite.com/something/cat2/postname" but i can't use sub-categories...
I guess only sub cat is an option unless you will write lots of .htaccess rule. This link might help you: http://codex.wordpress.org/Using_Permalinks