我正在本地开发应用程序(在域名<mydomain> .dev)。mod_rewrite:为什么它在本地工作而不是在线?
为了与友好的URL的工作,我已经建立了我的.htaccess这样的:
RewriteEngine on
# Externally redirect to add missing trailing slash
RewriteRule ^(([a-z0-9._\-]+/)*[a-z0-9_\-]+)$ http://example.com/$1/?%{QUERY_STRING}[NC,R,L]
RewriteRule ^about/$ about.php [NC,L]
RewriteRule ^issues/$ issues.php [NC,L]
RewriteRule ^issue/([a-z0-9_\-]+)/$ issue.php?slug=$1 [NC,L]
SetEnv PHP_VER 5
IndexIgnore *
Options +FollowSymLinks
它工作正常。烦人的是,当上线时,它不是很好:
http://example.com/issue/my-slug/#23返回没有GET变量。为什么?
会是怎样正确的重定向目标http://mydomain.eu/issue/my-slug/#23? – pts 2009-04-30 22:36:43