Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

redirect all URL requests to one script file

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi everybody!

I've read a lot about apache URL rewriting here, but my problem is to use URL rewriting on my local development environment (in other words: offline). I use Apache 1.3.22 (Win32) and PHP 4.0.6 on a Windows XP client. I don't want to use the httpd.conf file because I haven't access on it at my provider. So I want to use the .htaccess file to redirect (nearly) all requests to one script in the web root directory.
My DOCUMENT_ROOT (httpd.conf) is "E:/Dokumente und Einstellungen/dimple/Eigene Dateien/ and the path to the PHP-files is then "project/html".
The following .htaccess doesn't work - I always get a "HTTP 400" error and I guess, it is a path problem?!

+++++++++++++++++++++
RewriteEngine On
RewriteRule !\.(gif|jpg|png|css)$ /project/html/index.php
+++++++++++++++++++++

This is from Till Quacks example, please see
Can somebody help?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top