Forum Moderators: phranque

Message Too Old, No Replies

Redirect folder and canonical fix.

primary domain, sub domain, redirect, subfolder, canonical

         

masterplan

3:07 pm on Nov 18, 2008 (gmt 0)

10+ Year Member



I am a newbie for apache, after a lot of search, I still feel confuse in htaccess expressions.

I am looking for a solution via write some .htaccess files to achieve functions list below (specify .htaccess in different folder), jdMorgan please help.

Thanks a lot!

#### ORIGINAL ####

primary-domain.com --> /public_html/
www.primary-domain.com --> /public_html/
p-sub.primary-domain.com --> /public_html/p-sub/

addon-domain.com --> /public_html/addon-domain/
www.addon-domain.com --> /public_html/addon-domain/
a-sub.addon-domain.com --> /public_html/a-sub/

#### CHANGE TO ####

primary-domain.com --> /public_html/addon-domain/www/
www.primary-domain.com --> /public_html/addon-domain/www/
p-sub.primary-domain.com --> /public_html/primary-domain/p-sub/

addon-domain.com --> /public_html/addon-domain/www/
www.addon-domain.com --> /public_html/addon-domain/www/
a-sub.addon-domain.com --> /public_html/addon-domain/

[edited by: jdMorgan at 11:14 pm (utc) on Dec. 1, 2008]
[edit reason] Removed "http://" to de-link URLs [/edit]

coopster

10:54 pm on Dec 1, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, masterplan.

You could either use a set of Rewrite [httpd.apache.org] directives or perhaps even Redirect [httpd.apache.org]. What have you attempted so far?