RewriteEngine on RewriteRule ^(.+)/(.+)/(.*)$ /$3 RewriteRule ^(.+)/(.*)$ /$2 on http://localhost/nextpage/ On my home machine this worked fine at first, redirecting to http://localhost/ . Then it started to 404. I was editing php files at the time. On the remote machine, my hosting provider, this works fine, redirecting to http://localhost/ . the error on my home machine is: [Fri May 06 21:07:20 2005] [error] [client 127.0.0.1] Negotiation: discovered file(s) matching request: /var/www/localhost/htdocs/nextpage (None could be negotiated). (I notice no trailing slash here, when other logs with no error do show a trailing slash.) On my home machine, adding the directory nextpage/ to root allows it to properly redirect. moving the file nextpage.cont.php away also "fixes" the problem. Instead of a 404, it brings up index.php's output, a page with a menu and no content. (index.php parses PHP_URI and knows to pull up nextpage.cont.php). moving it back regenerates the 404. the access log for the previous steps, i.e. nextpage.cont.php moved away, url hit (21:16), nextpage.cont.php moved back, url hit(21:18): 127.0.0.1 - - [06/May/2005:21:16:10 -0700] "GET / HTTP/1.1" 200 3234 "http://localhost/nextpage/" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.7) Gecko/20050425 Firefox/1.0.3" 127.0.0.1 - - [06/May/2005:21:16:10 -0700] "GET /style.css HTTP/1.1" 304 - "http://localhost/" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.7) Gecko/20050425 Firefox/1.0.3" 127.0.0.1 - - [06/May/2005:21:16:15 -0700] "GET /nextpage/ HTTP/1.1" 200 627 "http://localhost/" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.7) Gecko/20050425 Firefox/1.0.3" 127.0.0.1 - - [06/May/2005:21:18:40 -0700] "GET /nextpage/ HTTP/1.1" 404 299 "http://localhost/" "Mozilla/5.0 (X11; U; Linux i686; en-US;rv:1.7.7) Gecko/20050425 Firefox/1.0.3" 127.0.0.1 - - [06/May/2005:21:18:40 -0700] "GET /favicon.ico HTTP/1.1" 304 - "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.7) Gecko/20050425 Firefox/1.0.3" This is a mere annoyance at this time, since my live box works just fine. But if it didn't... Tech support wouldn't hear the end of me :) Puzzles, puzzles, puzzles... -- --Alexander --------------------------------------------------- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change you mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss