|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
Can anyone help me with a mod url rewrite?
Dear Guys
Hopefully I have posted this in the correct section. I am trying to put together a mod url rewrite which will re-direct the user to different locations depending on the domain name .co.uk or .com domain co.uk re-directs to one location domain com re-directs to another location If anyone can give me any tips, I would be really grateful. Paul |
|
#2
|
||||
|
||||
|
You'll need to use a RewriteCond statement before your RewriteRule statement for this. Something like:
Code:
RewriteCond %{HTTP_HOST} \.co\.uk$
RewriteRule ^(.*)$ /co-uk-location
That RewriteCond statement means: if the host match ends in .co.uk, apply the rewrite rule. |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Server Administration > Can anyone help me with a mod url rewrite? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|