Jump to content

Modify URL


enigmadmin

Recommended Posts

hi ppl

 

i have several domains pointing to 1 site and it should always show 1 site name in the url, even if it was called from an other.

 

eg:

how it is now -

entered - displayed

a.com --> a.com

b.com --> a.com

 

how it should be -

entered - displayed

a.com --> b.com

b.com --> b.com

 

i had a go at the htaccess file with this:

RewriteCond %{HTTP_HOST} .

RewriteCond %{HTTP_HOST} !^a\.com [NC]

RewriteRule (.*) http://www.b.com/$1 [R=301,L]

 

yet it doesnt seem to do the job, i always endup with www.a.com

 

can someone help?  ;D

doesnt even HAVE to be with htaccess, if theres an other way  :P

Link to comment
https://forums.phpfreaks.com/topic/141672-modify-url/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.