Click here to Skip to main content
15,891,629 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello


i have a main domain like example.com and i have parked domain like example.net
in perfect word when u type example.net in the browser it will show content of the main page and the url will stay example.net

in my case the url switching it self back to .com i try lots of ways to avoide that happening but i fail

The web is on Joomla 2.5 and i don't see where in code in index.php or in .htaccess can be something what forcing the change

any one was have in past problem like that ??
the web was not done by me that's why its even harder to see what may coz it

Cheers
Posted
Updated 30-Apr-14 6:45am
v2

1 solution

Not sure if your web server runs under linux, but if it is the case, then you should check for directory /etc/httpd/conf.d/ (CentOS/RHEL) or /etc/apache/conf.d/ (Debian/Ubuntu).

There you should find Apache's configuration files, one should be dedicated to your web site. In there you should find the directives regarding web server name and other settings.

Without any contextual information, it's quite hard to tell you more about this.

Good luck. Hope this helps.

[EDIT]
To try to find Apache's base configuration file, type:
sudo find / -name httpd.conf

Once you located this file, open it with vim, and search for a ServerName and/or a NameVirtualHost directive; this should be the root web server address.

That is just the beginning of a track, though, as Apache's configuration files can come in so many different flavours :)
 
Share this answer
 
v2
Comments
SebSCO 30-Apr-14 14:12pm    
its on ySQL version 5.5.36-34.2
Operating system linux
and it's my host provider server in the folder u direct me to is only folder with name of my web and in it are file regarding passwords cant find conf.d file in it :(
phil.o 30-Apr-14 14:19pm    
conf.d is a directory, not a file. In this directory you should have at least an apache.conf file, and a [yourwebsite].conf file.<br>
But, Apache's configuration files can be found at several places and under different names; it merely depends on the linux distrib you are using. Reading Apache's .conf file should tell you whether there are some other configuration files involved, and where to find them (search for include directives).
SebSCO 30-Apr-14 14:41pm    
Thank You
i find Config hostname.example.com.conf and i check but all looking fin in it i think i will contact my host regarding that its strange hope its not some part of my web code who doing it

but thank a lot for the effort
phil.o 30-Apr-14 14:54pm    
Yeah no problem :) Do not hesitate to come back here if you manage to get some more informations.<br>
(hostname.example.com.conf most probably is a fake example configuration file, I'm not sure you can deduct anything useful from it)
I updated my answer to give you some hints on how you could find useful informations.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900