Recent Posts
Apache
mod_dir and internal rewrites
by firebus
02/25/2012 - 22:15
Oy.
In an htaccess, I wanted to make some internal rewrites for a directory using mod_rewrite
It would have been better to use mod_alias for this, but you can't use Alias in a Directory/htaccess context, and I had no access to the vhost configuration.
Here's the first rewrite I tried:
RewriteRule ^some/path(.*) filesystem/directory$1
This worked and provided an internal rewrite for URLs like
- some/path/something
- some/path/
Powered by Drupal - Design by Artinet - Amazon Affiliate
Recent comments
4 years 38 weeks ago
4 years 44 weeks ago
4 years 50 weeks ago
4 years 50 weeks ago
5 years 20 weeks ago
5 years 23 weeks ago
5 years 26 weeks ago
5 years 26 weeks ago
5 years 26 weeks ago
5 years 27 weeks ago