Apache rewrite installation problem

Alles, was den Apache betrifft, kann hier besprochen werden.

Apache rewrite installation problem

Postby labasta0 » 28. March 2006 14:57

My .htaccess works fine on hosting companies servers.

I am having problems enabling mod rewrite on apache on my local server



I have decided to put the rewrite within the http.conf, rather than .htaccess. I think the problem lies within the <directory/></directory> tags. I have removed the # from the loadmodule and put this between the directory tags:

<Directory "C:/Program Files/xampp/htdocs/browsebooks_php">
RewriteEngine on
RewriteRule ^books(.*)$ /ext_profile.php?book_id=$1&sub_id=$2
RewriteRule ^subcategory(.*)$ /subcat.php?sub_id=$1
RewriteRule ^non-fiction(.*)$ /cat.php?cat_non_fiction_id=$1
RewriteRule ^fiction(.*)$ /cat.php?cat_fiction_id=$1
RewriteRule ^children(.*)$ /cat.php?cat_children_id=$1
RewriteRule ^academic(.*)$ /cat.php?cat_academic_id=$1

AllowOverride none
Order deny,allow
Deny from all
</Directory>


These rewrite rules work on the host's server.

When I restart apache I get a 403 forbidden error. I assume this is due to the forbidden subfolder in the htdocs folder which xampp puts there, but I don't know how to correct it.

Any help would be appreciated.

Alastair
labasta0
 
Posts: 1
Joined: 28. March 2006 14:50

Return to Apache

Who is online

Users browsing this forum: No registered users and 291 guests