url rewriting of a specific category
-
Hi, I’m trying to find a way to rewrite the url for a specific category.
the general permalink structure is :
mywebiste.tld/myblog/%category%/%postname%-%post_id%/I want to skip “/myblog/” if the category name is “OutOfBlog” so that it becomes
mywebiste.tld/subcategoryname/(+postname)
instead of
mywebiste.tld/myblog/OutOfBlog/subcategoryname/(+postname)Q1 : is this possible ?
Q2: I’m trying this with .htaccess in the root directory of WordPress (which is a subdirectory called “myblg” of my website). Is this the right way? I believe using htaccess is faster than using php functions.
Q3 : I’ve tried things like :
#RewriteRule ^https://www.mywebiste.com/(.*)$ /OutOfBlog/$1 [L]
Maybe I should be using the “plain” url instead of an already rewritten url in the condition part, I’m a newbie in all these. Could someone give me a hint ?Further Explanation :
I have a WordPress installed inside my website which runs with prestashop.
The WordPress is currently used just for my blog but I want to use it for some articles on my site, for it seems much easier with WordPress, but I don’t want “myblog” to appear on the url.Even a partial reply would be appreciated.
Thanks in advance for your help.
- The topic ‘url rewriting of a specific category’ is closed to new replies.