Apache redirect webpage

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

Apache redirect webpage

Postby Renato99 » 07. September 2011 11:49

How do I configure Apache to repoint a url of say http://<servername>:8088 to a default one (e.g. http://<servername>:8088/Login/)
Do I need to make a change in /etc/httpd/conf.d or /etc/httpd/conf
Renato99
 
Posts: 1
Joined: 07. September 2011 11:44

Re: Apache redirect webpage

Postby glitzi85 » 15. September 2011 14:58

You can use RedirectMatch in your VirtualHosts-Block

Code: Select all
RedirectMatch ^$ http://example.com/Login/


You have to load mod_alias to make this work.

In which file you have to add it is depending on your Operating System and/or configuration.

glitzi
User avatar
glitzi85
 
Posts: 1920
Joined: 05. March 2004 23:26
Location: Dahoim


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 31 guests