Ticket #1245 (new defect)

Opened 4 years ago

Last modified 4 years ago

www/$module dir index is displayed when using mod_rewrite

Reported by: jcasanova Assigned to: somebody
Priority: normal Milestone:
Component: not categorised Severity: analyzing
Keywords: url rewriting Cc:

Description

When using mod_rewrite and trying to access a module by its short url (e.g. localhost/media) a directory index is displayed.

This happens because the rewrite condition associated to the rewrite rule is: forward all querystring to index.php UNLESS querystring matches an existing file or folder. Which is the case in this example with /media since the symlink feature on $module/www dir has been implemented.

My first thoughts are to remove the RewriteCond %{REQUEST_FILENAME} !-d condition in

#allow cool urls
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php [L]

Can you think of another workaround?

Change History

10/30/06 07:18:06 changed by demian

  • priority changed from high to normal.

12/05/06 13:33:20 changed by demian

  • milestone deleted.