LuxCal Forum

The place for questions, suggestions and news about the LuxCal Event Calendar

User:   Password:   Remember Me?   
LuxCal Forum / General / Support / Redirecting root to calendar subdomain
Posted:  06 Jan 2015 19:23
Thanks for this program, it does exactly what I want.

The problem is I'd like to have my calendar subdomain show up as the root. I'm using an .htaccess file to do the redirection:
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) /calendar/index.php [L]
RewriteRule ^$ /calendar/index.php [L]

This redirects properly, but the css file wasn't found, so I changed the css link in the header1.php to /calendar/css/css.php which worked. But the popup windows for the options, upcoming events, and event report don't work.

Is there a way to make this work without changing all the file links?
Posted:  06 Jan 2015 19:55
I figured it out.

I added <base href="http://mydomain/calendar/"> to the header files and everything works.
Posted:  06 Jan 2015 22:55
Yes great!

In the current SQLite version of LuxCal and in the new MySQL version of LuxCal, which will be released later this month, there is only one header.php file. So in this case the <base> tag has to be added only once.