Natural URL not ip address based

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Natural URL not ip address based

Postby yukija » 25. March 2012 04:26

Sorry if I ask you a very childish question but appreciate your help.
I have setup a drupal site in xampp. What I did like below:
1) In windows 2003 server, I have setup xampp
2) Copied Drupal to c:/xampp/htdocs folder
3) Everything working fine

Problem is I have to browse the website using server's IP addrees:
Suppose like below:

http://192.168.2.1/mywebsite

But what I want it should be looks like natural url (no ip address)

suppose like below:
http://mywebsite.com

Since it is Intranet based website (not public)

What I can do can you advice please.
yukija
 
Posts: 16
Joined: 07. July 2009 00:40
Operating System: Windows 2003 Server

Re: Natural URL not ip address based

Postby Sharley » 25. March 2012 05:04

First and very important for correct support, would you be so kind as to add your XAMPP version and Operating System to your profile as per these instructions and associated information:
viewtopic.php?f=16&t=48626
Thanks. :)


Next you could try using the Windows hosts file and add this line to it
Code: Select all
192.168.2.1 mywebsite.com
C:\Windows\system32\drivers\etc\hosts - drag the file into your opened notepad, do the edit, then save the file and try again:
http://mywebsite.com
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 92 guests