Strange mod_rewrite problem; Website works partially
- by Camran
I have Ubuntu 9.10 Server...
I need to get mod_rewrite working...
the mod_rewrite module IS LOADED.
On my server, the httpd.conf is empty, instead everything (almost) is in a file called apache2.conf.
Anyways, I have also read I have to change the AllowOverride None to AllowOverride All in some file...
My httpd.conf is empty as you know, but I have a folder called sites-enabled which contains a 000-default file. This is where I have set:
AllowOverride All
Now my goal as I stated in the last Q is to turn this link:
http://mydomain.com/ad.php?ad_id=Bmw_nice_M3_497379462
into this:
http://mydomain.com/Bmw_nice_M3_497379462
So as I got an answer in the last Q i inserted this into the htaccess file:
Options +FollowSymLinks
Options +Indexes
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/ad\.php
RewriteRule ^(.*)$ ad.php?ad_id=$1 [L]
Now, this works (no fully) when entering the url manually in the adress bar, but my website isn't working now for some reason.
It is like the website is locked down or something, and unless I change AllowOverride to None it will act like that.
Any ideas why?
Also another note, the links inside the rewritten url doesn't work properly (images are not shown, while some are shown)...