| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
greyw
Joined: 25 Aug 2007 Posts: 24
|
Posted: Wed Sep 05, 2007 6:16 pm Post subject: mod-rewrite and parked domain |
|
|
I'm doing a test: I have a site in the root dir and the forum in the sub;
I parked a domain on the main one and set up some reirections in order to get the site shown under the main domain and the forum under the parked one, but now I lost the forum url rewrite benefits: under the parked domain, the forum urls come up with parameters...
How can I remediate,please?
Thanks
Here there are my domain rewrite rules:
| Code: | #canonicalize parked domain:
RewriteCond %{HTTP_HOST} ^parked\.net
RewriteRule (.*) http://www.parked.net/$1 [R=301]
#redirects parked domain specific url to the main one:
RewriteCond %{HTTP_HOST} ^www\.parked\.net
RewriteRule ^search.pl(.*) http://www.main.net/search.pl$1 [R=301]
#canonicalize main domain:
RewriteCond %{HTTP_HOST} ^main\.net
RewriteRule (.*) http://www.main.net/$1 [R=301]
#redirects main domain forum url tothe parked one:
RewriteCond %{HTTP_HOST} ^www\.main\.net
RewriteRule ^forum/(.*) http://www.parked.net/forum/$1 [R=301,L] |
They are located AFTER the forum url rewrite rules.
Thanks again  |
|
|
| Back to top |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15242
|
|
| Back to top |
|
 |
greyw
Joined: 25 Aug 2007 Posts: 24
|
Posted: Thu Sep 06, 2007 10:57 am Post subject: Re: mod-rewrite and parked domain |
|
|
| Quote: | | You could install the parked domain in the forum directory, so that your forum would appear in it's root for example. |
How? |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15242
|
|
| Back to top |
|
 |
greyw
Joined: 25 Aug 2007 Posts: 24
|
Posted: Sat Sep 08, 2007 10:18 am Post subject: Re: mod-rewrite and parked domain |
|
|
Hello,
I come back in topic as my parked domain is just being indexed!
Can I fix the url rewrite in order to get plain urls even with parked domain? |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15242
|
Posted: Sat Sep 08, 2007 10:22 am Post subject: Re: mod-rewrite and parked domain |
|
|
I'm not sure to understand.
You have domain1.com and domain2.com linked to your FTP public root.
If you want domain1.com to take care of the root folder, and domain2.com to take care of the forum in the forum/ folder, then you'll need to alter the domain2.com VHOST to have it linked directly to the forum/ folder IMHO.
Trust me, you don't want to HTTP 301 redirect all your forums pages on the long run.
++ |
_________________ Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________
Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche |
|
| Back to top |
|
 |
|
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |