htaccess for subdomain help
Posted
by
Patrick
on Server Fault
See other posts from Server Fault
or by Patrick
Published on 2011-07-01T04:45:17Z
Indexed on
2011/07/01
8:24 UTC
Read the original article
Hit count: 244
.htaccess
|mod-rewrite
Usually I just use the online tools for url mod_rewrite rules but this just wouldn't work.
Dynamic url: http://sub.domain.com/index.php?page=index&name=test
Rewritten url: http://sub.domain.com/test OR http://sub.domain.com/test/
My htaccess:
RewriteRule ^([^/]+)/?$ index.php?page=index&name=$1 [L]
Instead of passing "test" for the variable name, I always get the value "index.php"
Anyone gurus has have any idea?
© Server Fault or respective owner