once more: .htaccess - RewriteRules working, but browser address bar displaying full (unfriendly) URL
Posted
by
audio.zoom
on Stack Overflow
See other posts from Stack Overflow
or by audio.zoom
Published on 2011-01-05T21:26:11Z
Indexed on
2011/01/06
5:53 UTC
Read the original article
Hit count: 362
.htaccess
Hi,
I can't seem to find my problem with this really simple .htaccess file:
Options -Indexes
Options +FollowSymLinks
RewriteEngine on
RewriteBase /d/
#
drupal style url rewriting
RewriteRule ^([^.]*)$ index.php?path=$1 [L]
It works as intended for everything except the root url with no slash. So it rewrites and passes the hidden get querystring to my pages for localhost/d/x/y/z as ?path=x/y/z and localhost/d/ as ?path= (blank) but...
localhost/d works, but now appears in the address bar as this ugly monster:
http://localhost/d/?path=/Users/audiozoom/Documents/webroot/d
What could be the problem?
© Stack Overflow or respective owner