php-db | 2001041

[PHP-DB] htaccess question From: Peter Van Dijck (peter <email protected>)
Date: 04/14/01

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
>
>
>>Hi,
>>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 <email protected>
>>For additional commands, e-mail: php-general-help <email protected>
>>To contact the list administrators, e-mail: php-list-admin <email protected>
>
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>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 <email protected>
>For additional commands, e-mail: php-general-help <email protected>
>To contact the list administrators, e-mail: php-list-admin <email protected>
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
http://liga1.com building multiple language/culture websites
http://poorbuthappy.editthispage.com online ethnology, up&down

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-db-unsubscribe <email protected>
For additional commands, e-mail: php-db-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>