Jump to content

Recommended Posts

Hi

I run an Apache Server on Windows XP Home.  I have my domain name and have forwarded to my static IP address however the url is coming up as my IP address instead of my domain name.  I've checked and double checked all the web forwarding and its all correct.

 

Is there anything I can do in Apache to ensure the domain name appears instead of the IP address.

 

Currently showing e.g.

and I'd like it so show e.g.

 

Any ideas ?

 

Cheers SW

Link to comment
https://forums.phpfreaks.com/topic/120115-domain-forwarding-issues/
Share on other sites

DNS Check Result

Domain name scotweather.co.uk

IP Address (A-Record) 82.165.218.111

Name server 1 ns59.1and1.co.uk

Name server 2 ns60.1and1.co.uk

Mail server 1 mx01.1and1.co.uk, 10

Mail server 2 mx00.1and1.co.uk, 10

 

http forward to www.scotweather.co.uk

 

You see it forwarding to www.scotweather.co.uk but then as soon as it hits my server it changes to the IP address so something in the configuration is incorrect but I don't know where to look as I don't usually play around with the server configs.  I used to have dyndns and it resolved perfectly with the correct urls but since leaving DynDNS it won't keep the www.scotweather.co.uk and resolves to the IP address.

 

Is there any config files you need to look at ?  I'd be happy to supply if I knew which ones.

 

Your help is most appreciated.

 

 

Hi I have resolved this problem however I have two domain names which are setup as a frame forward i.e. the URL remains in the search bar.  The redirects are correctly setup however IF I specify a different folder from the root folder (htdocs) e.g. http://mydomain.com/folder/index.php the server sends the request to the root folder again and doesn't go to the subfolder.

 

Could someone please advise me how to forward a domain name to a specific folder via the server?

 

many thanks

 

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.