Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 03-31-2008, 01:28 AM   #1
Registered: Dec 2003
Location: Milwaukee, WI
Distribution: Gentoo
Posts: 39

Rep: Reputation: 15
Apache mod_rewrite question

Hi, I've been playing with DAViCal lately (, and after working through some database permission issues, I have fully syncable calendars between all of my computers. I am running into one issue with the way iCal handles requests, but mod_rewrite should be able to solve the problem.

For some reason, iCal sends a PROPFIND to / (on the Apache server) when creating or deleting calendars. Since the DAViCal application and data are stored at /cal, and a full web site, that doesn't know how to handle PROPFIND requests, is located at the server root, iCal keeps getting 405 errors and pops up a dialog box. Ignoring this requests seems to cause no problem, but it would be nice to silence the dialog box by redirecting any PROPFIND requests on / to /cal.

After researching mod_rewrite, I've come up with the following:
RewriteEngine on
RewriteRule / /cal
This doesn't seem to work though, as I still get the same errors. I've tried commenting out the condition and just browsing to the page normally, but do not get redirected to /cal. I've tried adding ^ and $ around the /, and removing the leading slash from /cal, but in all cases I still see the main page at /. Testing with a more simple rewrite rule that converts *.html to *.php seems to work fine, so I know the rewrite module is loaded and working.

Any ideas on how I can get this to work?

Thanks much!


apache2, modrewrite

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache and mod_rewrite Elguapo Linux - Software 1 08-09-2007 03:24 AM
How to enable Apache mod_rewrite, after apache installed without this modue jCash Linux - Newbie 1 10-24-2006 10:23 AM
Apache:mod_rewrite MadMikie Linux - Software 0 08-03-2004 07:33 AM
Apache (mod_rewrite) question Wonko the Sane Linux - Software 1 06-15-2003 12:55 PM
Apache and mod_rewrite notsoevil Linux - General 0 01-23-2002 01:39 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:43 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration