View Full Version : [ubuntu] apache automatically rewriting URLs?
March 29th, 2010, 05:50 AM
So I have a really weird problem. I enabled mod_rewrite using a2enmod, but now apache automatically rewrites pages (like it's inheriting). For example, any page with a .php extension can be accessed with or without the extension. For example, example.com/page.php = example.com/page = example.com/page/! There are NO .htaccess files on the server anywhere! I did a full sudo search. Is there something in the apache configuration that automatically does this. I've never seen it before. I need to write custom rewrites, and this is screwing everything up.
March 29th, 2010, 09:01 AM
The configuration that causes this doesn't need to be in a .htaccess file. It could be in any *.conf file in /etc/apache2/.
Also note .htaccess files are hidden and might not appear in your search results. ls -a will show hidden files.
March 29th, 2010, 02:20 PM
Options Indexes FollowSymLinks MultiViews
allow from all
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Allow from all
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
CustomLog /var/log/apache2/access.log combined
Alias /doc/ "/usr/share/doc/"
Options Indexes MultiViews FollowSymLinks
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
Powered by vBulletin® Version 4.2.2 Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.