3 Minor Edit: Reformatted Example links in favor of <PRE> Plus some other formatting.
source | link

I run WordpressWordPress in Network mode, which means I can have multiple websites running off one installation of WordpressWordPress. Each website runs as a subdomain. Wordpress WordPress handles this using .htaccess, and a wildcard subdomain pointing to the location of WordpressWordPress, so there are no actual subdomains created in cPanel; just a wildcard subdomain in cPanel, ad WordpressWordPress handles the rest.

I want to 301 redirect http://one.example.com/portfoliohttp://one.example.com/portfolio to http://two.example.com/portfoliohttp://two.example.com/portfolio.

If I only have 1 .htaccess file in the web root of example.com, how do I achieve this?

EDIT: I have used the following but it does not work:

RewriteCond %{HTTP_HOST} ^steve\.doig\.com\.au$ [NC]
RewriteRule ^/products.html http://tech.doig.com.au/products.html/ [L,R=301]

(this is to redirect http://steve.doig.com.au/products.htmlhttp://steve.doig.com.au/products.html to http://tech.doig.com.au/products.htmlhttp://tech.doig.com.au/products.html)

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?

EDIT: I have used the following but it does not work:

RewriteCond %{HTTP_HOST} ^steve\.doig\.com\.au$ [NC]
RewriteRule ^/products.html http://tech.doig.com.au/products.html/ [L,R=301]

(this is to redirect http://steve.doig.com.au/products.html to http://tech.doig.com.au/products.html)

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?

EDIT: I have used the following but it does not work:

RewriteCond %{HTTP_HOST} ^steve\.doig\.com\.au$ [NC]
RewriteRule ^/products.html http://tech.doig.com.au/products.html/ [L,R=301]

(this is to redirect http://steve.doig.com.au/products.html to http://tech.doig.com.au/products.html)

2 added detail
source | link

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?

EDIT: I have used the following but it does not work:

RewriteCond %{HTTP_HOST} ^steve\.doig\.com\.au$ [NC]
RewriteRule ^/products.html http://tech.doig.com.au/products.html/ [L,R=301]

(this is to redirect http://steve.doig.com.au/products.html to http://tech.doig.com.au/products.html)

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?

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?

EDIT: I have used the following but it does not work:

RewriteCond %{HTTP_HOST} ^steve\.doig\.com\.au$ [NC]
RewriteRule ^/products.html http://tech.doig.com.au/products.html/ [L,R=301]

(this is to redirect http://steve.doig.com.au/products.html to http://tech.doig.com.au/products.html)

1
source | link

.htaccess 301 Redirect for wildcard subdomains

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?