Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have installed Magento inside a folder called magento. The URL of the site currently looks like this:
We want our domain forwarded to the above URL and moreover, any links relative should work as well. e.g.
should ideally
be and so forth.

Thanks very much.

share|improve this question

migrated from Jun 2 '10 at 9:53

This question came from our site for computer enthusiasts and power users.

this is better suited to our sister site, Server Fault. it will be migrated there shortly; please don't crosspost. you will need to register an account on SF and associate your accounts together to regain ownership of the question. –  quack quixote Jun 2 '10 at 9:53

1 Answer 1

There's no easy way to do this on the domain level, as domains don't handle protocol-specific information.

One way you can accomplish this: If you have apache running on, add Redirect / to the configuration which is responsible for serving the domain. This is simplest, but won't preserve the URL in the user's address bar.

If both domains are hosted on the same server, you can probably use apache's Alias directive to make the website behave exactly as you wish, including showing the proper URL in the user's address bar. In fact, if this is the case, you should be able to set the same directory to the root of the domain (using the Directory directive)

share|improve this answer
Hi Darth thanks for your reply. this is what I did: I created a new folder called gioslive and copied the magento installation here. Then forwarded the domain to this directory. However, now if you surf it throws a PHP error. I dont know what I am doing wrong here? –  WaZ Jun 3 '10 at 10:57
@WaZ Many php packages need to know both the path to the installation directory and the url to reach the root of the package. Double check that these are accurate after moving the files. Otherwise I can't help any more without more detailed information on the error. –  Darth Android Jun 11 '10 at 7:21

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.