up vote 1 down vote favorite
share [g+] share [fb]

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.

link|improve this question

feedback

2 Answers

up vote 1 down vote accepted

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.

link|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
1  
@taspeotis Please never create "belongs on xxxxxx" tags. They are an inappropriate use of the tag system. You can either leave a comment or flag for moderator attention. – Troggy Jan 31 '10 at 0:56
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
feedback

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>
link|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
feedback

Your Answer

 
or
required, but never shown

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