httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From CSN <cool_screen_name90...@yahoo.com>
Subject Re: [users@httpd] mod_rewrite & mod_alias
Date Sat, 08 Jan 2005 01:09:30 GMT
I tried this:

AliasMatch ^/b2evo/blog/(.+)
/var/www/html/b2evo/index.php/$1
Alias /b2evo /var/www/html/b2evo # for all the
stylesheets, images, etc.

And index.php still isn't picking up the $1 var.
phpinfo() shows:

SCRIPT_FILENAME 	/var/www/html/b2evo/index.php
QUERY_STRING 	no value
REQUEST_URI 	/b2evo/blog/blogname
SCRIPT_NAME 	/b2evo/blog
PATH_INFO 	/blogname
PATH_TRANSLATED 	/var/www/html/mydomain/blogname


I'm not sure what to make of that (PATH_INFO  and
PATH_TRANSLATED - directory "blogname" doesn't exist.
The "/blogname" part of the URL should be passed to
index.php which it splits to get query vars).

CSN


> * CSN wrote:
> 
> > I need to use mod_rewrite because:
> >
> > RewriteRule ^blog/(.+) index.php/$1
> 
> Hmm? Did you *try* the Alias? It does exactly what
you want, just better and 
> faster than mod_rewrite.
> 
> nd


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message