Apache Server configuration support - Rewrite works in httpd.conf but no .htaccess

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > April 2007 > Rewrite works in httpd.conf but no .htaccess





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Rewrite works in httpd.conf but no .htaccess
Matt

2007-04-25, 7:26 pm

My first attempt at mod_rewrite

I've got the following working in httpd.conf

RewriteEngine On
RewriteRule ^/download/(.*)$ /download/getFile.php?id=$1

Example request: /download/dude
Served: /download/getFile.php?id=dude

I'm trying to do the same thing in an .htaccess file. I've put it in
the /download/ directory:

RewriteEngine On
RewriteRule ^(.*)$ /download/getFile.php?id=$1 [L]

I commented out my httpd.conf code, put the .htaccess in place and
restarted the server, but the request yields a 404.

Why should I start to debug this problem?

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com