voroojax / waf-fle

Automatically exported from code.google.com/p/waf-fle
0 stars 0 forks source link

Redirect from root to dashboard #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Describe feature request
As the main website is located in /dashboard I thought it might be useful to 
include a index.php in the webroot returning a redirect to the dashboard 
subfolder:

<?php
header('Location: http://[HTTP_HOST]/dashboard/');
?>

or make some cryptic rewriterule doing the same.

Witch benefit all users will get with this new feature?
It will create a nicer url and make the initial config easier for new users.

Original issue reported on code.google.com by warpsp...@gmail.com on 17 Oct 2011 at 1:04

GoogleCodeExporter commented 9 years ago
This can be good for a dedicated server (or apache virtual host) to WAF-FLE, 
but not for a host used for other applications.

We can achieve this redirect (using mod_alias) by using the line bellow in 
<Directory /> or <Location /> :

   RedirectMatch ^/$ /waf-fle/

I'll include this as a suggestion on README file, to make it optional to the 
user, and to don't disturb a working web server.

Thank you for your suggestion

Original comment by klaub...@gmail.com on 18 Oct 2011 at 12:43

GoogleCodeExporter commented 9 years ago

Original comment by klaub...@gmail.com on 21 Jan 2014 at 11:01