Owais Kiani
Owais Kiani

Reputation: 375

How can i redirect some url in wordpress?

I am working on word press blog I want to redirect some old URL to new one's. My old URL was www.example.com/blog/category/subcategory/post. Now i want to redirect all these types of URL to www.example.com/blog/Post. I have tried redirect in ht-access of sub domain but i didn't worked.

Redirect 301 category/subcategory/test_post/ www.example.com/blog/test_post/

Thanks in advance

Upvotes: 0

Views: 24

Answers (1)

Kai Mattern
Kai Mattern

Reputation: 3085

Your idea with htaccess was correct. You will have to implement this via the Apache Conf. So htaccess will add its content to the Apache configuration.

However, not all Apache servers are configured to accept all htaccess commands.

So, please check your main Apache config if it allows to override anything and if the redirect module is enabled.

Also note, that it is not a good idea to write host names in capital letters, as they may be case sensitive. www != WWW

As for the syntax, you might need to include the protocol.

Redirect permanent /one http://www.newdomain.com/two

Upvotes: 1

Related Questions