3 replies [Last post]
Kevstar
Kevstar's picture
Offline
Enthusiast
England
Last seen: 6 years 15 weeks ago
England
Timezone: GMT+1
Joined: 2012-07-20
Posts: 81
Points: 107

I currently own www.xclo.co.uk and have been running my mobile site located at m.xclo.co.uk for a while now.

I just yesterday bought a new domain of www.xclo.mobi and would like this to replace my m. Page which redirects to xclo.co.uk/mobile.

There is no web hosting behind .mobi and both sites are powered by separate hosts because my .co.uk host does not support .mobi.

However. I would like .mobi to to display the .co.uk/mobile content but keep the .mobi site in the address box.

How can I do this?

Please help. Thank you.
Cool

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 1 day 7 hours ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5344
Points: 2965

Sounds like you will have to

Sounds like you will have to look at some Apache rewriting http://httpd.apache.org/docs/current/mod/mod_rewrite.html

Kevstar
Kevstar's picture
Offline
Enthusiast
England
Last seen: 6 years 15 weeks ago
England
Timezone: GMT+1
Joined: 2012-07-20
Posts: 81
Points: 107

Hi. Thanks for that. I'm

Hi.

Thanks for that.

I'm not on my pc at the moment but am trying to sort this out and get an idea of how to do this on my iPad before I log on to my pc.

If I was to add:

RewriteEngine On
RewriteCond %{REQUEST_URI} ^http://www.xclo.mobi($|/)
RewriteRule ^.*$ /mobile [L]

To my .htaccess.

Will that work?

Thanks.

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 1 day 7 hours ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5344
Points: 2965

You will have to try it

You will have to try it out.
Mod_rewrite is not really one of my specialities.