Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.