Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'd like to have a redirection web page from one page to another so that I can have two names for the same web page on my server. I tried creating a windows shortcut, but that did not work. Please suggest how to have one page be a pointer to another.

share|improve this question
add comment

2 Answers

This belongs on Server Fault. This is a server question, regarding Apache running on the Windows platform.

two names for the same web page on my server

What are you trying to do? Are you trying to have Apache serve http://www.domain.com as well as http://domain.com?

If you are trying to have localhost/a.htm and localhost/b.htm point to c.htm you could try mod_alias or mod_rewrite.

share|improve this answer
    
I'm trying to have the following be the same: domain.com/directory/index.html domain.com/index.html Without duplicating the page. –  WilliamKF Jan 31 '10 at 0:42
    
I couldn't get the 'Alias' command to work for me, but the 'Redirect' did work. Think it had to do with permissions. –  WilliamKF Jan 31 '10 at 1:50
add comment
up vote 1 down vote accepted

This is what I ended up doing in my virtual host section of the configuration file:

<VirtualHost *:80>
DocumentRoot "C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\myDocs"
ServerName www.domain.com
Redirect /index.html http://www.domain.com/anotherLocation
</VirtualHost>
share|improve this answer
    
@WilliamKF - was the correct answer then from taspeotis or from you? Appears as though you answered your own question correctly. You should give yourself credit for that. –  Patrick Jan 31 '10 at 2:33
add comment

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.