redarrow Posted August 19, 2006 Share Posted August 19, 2006 the problam i got.I use a sub damain name for my url.examplehttp://me.ath.cxi want to rewrite the sub domain url to show thishttp://www.me.co.ukhow please as i will register http://www.me.co.ukbut when the user goes to the page the sub domain is this http://me.ath.cx but want to show http://www.me.co.ukbecose now i own http://www.me.co.ukhope you understand. Quote Link to comment Share on other sites More sharing options...
Orio Posted August 19, 2006 Share Posted August 19, 2006 Can you explain again?I think what you mean is that every page (for example- http://me.ath.cx/file.php) it will redirect to the matching page (in our example- http://www.me.co.uk/file.php)? Not sure tho.Orio. Quote Link to comment Share on other sites More sharing options...
redarrow Posted August 19, 2006 Author Share Posted August 19, 2006 i register http://www.me.co.uk and then i use a foward service to goto my sub domainhttp://me.ath.cx ok.know when a user goes to the page from the foward they see in the url http://me.ath.cx but i want them to see http://www.me.co.uk but i got to some how get the sub domain to look the same as the fowarding domain. Quote Link to comment Share on other sites More sharing options...
Daniel0 Posted August 19, 2006 Share Posted August 19, 2006 I don't get what you try to do. Quote Link to comment Share on other sites More sharing options...
redarrow Posted August 19, 2006 Author Share Posted August 19, 2006 like this example okRewriteCond %{HTT_HOST} ^ me.ath.cx [NC]RewriteRule ^(.*)$ http://www.me.co.uk/$1 [r=301,l]i need the url of http//:me.ath.cx to be http://www.me.co.ukshowing in the url of the page but how lol....... Quote Link to comment Share on other sites More sharing options...
redarrow Posted August 19, 2006 Author Share Posted August 19, 2006 my ip is dynamic so i register a www.domain name then point to my subdomain what uses a dynamic service i wont to change that name in the url but how. Quote Link to comment Share on other sites More sharing options...
Daniel0 Posted August 19, 2006 Share Posted August 19, 2006 So you need help with mod_rewrite? Quote Link to comment Share on other sites More sharing options...
redarrow Posted August 19, 2006 Author Share Posted August 19, 2006 yes thank you i think that mod rewite makes a existing url and turn it into any looking url you want am i correct.so if i wanted to change my current subdomain url to another url but the url will be made up but running off of the sub doamin does mod rewrite do that.http://me.ath.cx <<<<<<< sub doamainhttp://www.me.co.uk <<<<<<<<<<, rewrite domain made upwho ever goes to http://me.ath.cx they see the rewrite url can mod rewite do that. Quote Link to comment Share on other sites More sharing options...
redarrow Posted August 19, 2006 Author Share Posted August 19, 2006 does anyone know how to make up a url but of the back of a sub url. so if you wanted http://me.ath.cx to be http://www.me.co.uk but as a alias of http://me.ath.cx.so in the browser you see this url http://www.me.co.uk but in reality the url is http://me.ath.cx Quote Link to comment Share on other sites More sharing options...
oldmanice Posted September 4, 2006 Share Posted September 4, 2006 Create a vhost Quote Link to comment Share on other sites More sharing options...
zq29 Posted September 5, 2006 Share Posted September 5, 2006 Does the company you bought the domain from have a forwarding service? I get all my domains from 123-reg.co.uk and I have the option to forward my domains somewhere else but keep the forwarding domain in the location bar. It's probably done with frames or something... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.