htaccess question
| From: | Peter Van Dijck | Date: | Sat, 14 Apr 2001 15:29:44 +0000 |
| Subject: | htaccess question | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-8564@lists.php.net to get a copy of this message | ||
My htaccess file is now:
RewriteEngine on
RewriteRule !\.gif$ - [C]
RewriteRule !\.jpg$ - [C]
RewriteRule ^(.*) index.php
This was working before, but it suddenly stopped working (after I renamed some directories)!
Aarg! What now?????
Is there anything wrong with the above code???
Peter
Also, I am trying to find a way to get this to work: within the directory I'm in, 1/5/2/3 should be rewritten to index.php?a=1&b=5&c=2&d=3 I'm sure lots of people have done this before, but the Apache examples don't seem to include this. Where can I find a working example? Thanks! Peter~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ http://liga1.com building multiple language/culture websites http://poorbuthappy.editthispage.com online ethnology, up&downHi, i installed Apache, PHP and mySQL on winNT. I am trying to get htaccess files to work. I created a .htaccess file in a directory with this line in it: errordocument 404 /404.php I changed the httpd.conf file for apache and restarted apache like this: # AllowOverride None AllowOverride All But when I enter a url that doesn't exist I get this error in the browser: Not found The requested URL /peter personal/applications development/generic/htdocs/subfolder/dfdfdf was not found on this server. Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request. What is a good way to check if htaccess files are working, and what can I do to get them to work? Thanks for any ideas, hints, ...! Peter ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ http://liga1.com building multiple language/culture websites http://poorbuthappy.editthispage.com online ethnology, up&down -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ http://liga1.com building multiple language/culture websites http://poorbuthappy.editthispage.com online ethnology, up&down -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net