.htaccess 301 Redirect for wildcard subdomains
Posted
by
Steve
on Pro Webmasters
See other posts from Pro Webmasters
or by Steve
Published on 2012-08-28T11:10:34Z
Indexed on
2012/08/28
15:51 UTC
Read the original article
Hit count: 241
I run Wordpress in Network mode, which means I can have multiple websites running off one installation of Wordpress. Each website runs as a subdomain. Wordpress handles this using .htaccess, and a wildcard subdomain pointing to the location of Wordpress, so there are no actual subdomains created in cPanel; just a wildcard subdomain in cPanel, ad Wordpress handles the rest.
I want to 301 redirect http://one.example.com/portfolio to http://two.example.com/portfolio.
If I only have 1 .htaccess file in the web root of example.com, how do I achieve this?
© Pro Webmasters or respective owner