Web Hosting Talk







View Full Version : Redirect Wordpress posts to specific links


roberto-bbh
02-19-2010, 03:24 PM
I have a Wordpress blog in wich I've created 3 posts that I want to redirect the visitor to a subdomain of the website.

I used posts because this theme allowed me to create some sort of Portfolio for this website.

Anyways, I need to redirect a link such as "domain.com/post-one/" to "subdomain.domain.com"

I tried some examples of redirections using the .htacces but didn't come out well.

I also have Permalinks enabled so Mod_Rewrite is On, could this interfere with the thing I want to do ?

Dr:linux
02-20-2010, 02:27 AM
Just go to domain.com/post-one directory and place the .htaccess file with the following code

Redirect 301 /post-one http://subdomain.domain.com

Just check this and let me know the results...have a nice time. :)

roberto-bbh
02-20-2010, 02:57 PM
Just go to domain.com/post-one directory and place the .htaccess file with the following code

Redirect 301 /post-one http://subdomain.domain.com

Just check this and let me know the results...have a nice time. :)


Hi,
Yes I would've been easy but the problem is that there isn't a "/post-one directory" ! The "/post-one" is just generated by Wordpress Permalinks, by default wordpress has links in "http://example.com/?p=N" format.