Placing .htaccess file in var/www folder messes my website up...

Posted by Camran on Stack Overflow See other posts from Stack Overflow or by Camran
Published on 2010-06-07T19:23:24Z Indexed on 2010/06/07 19:32 UTC
Read the original article Hit count: 147

Filed under:
|
|
|
|

I am playing with mod_rewrite now, and have successfully enabled it.

However, I need to put a htaccess file inside var/www/ in order to achieve what I want, which is to rename Urls simply... When I place it my website becomes very strange and nothing basically works...

Is there any code I need to put into the htaccess file in order for things to act normally?

Here is the htaccess file I have so far:

Options +FollowSymLinks
Options +Indexes
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/ad\.php
RewriteRule ^(.*)$ ad.php?ad_id=$1 [L]

My DocumentRoot is also set to var/www/ and my entire website root is there... (index.html etc etc)...

What am I missing about the htaccess?

If you need more input let me know...

© Stack Overflow or respective owner

Related posts about php

Related posts about html