English 中文(简体)
为什么不工作?
原标题:Why is the RewriteBase not working?

这里我试图做的是:

  • domain is thinkingmonkey.me
  • domain has 127.0.0.1 as IP addr
  • mod_alias is installed.

我有一份称为<代码>directories.conf的汇辑。 我的组合都与名录有关。

My directories.conf ——

Alias /runs /xhprof/xhprof_html

<Directory /mysite/xhprof/xhprof_html>
    Order allow,deny
    Allow from all
    AllowOverride All
</Directory>

/mysite/xhprof/xhprof_html/.htaccess。 我有:

RewriteEngine on
RewriteBase /runs
RewriteRule  .*  index.php

我试图这样做的是,根据<代码>/Msite/xhprof/xhprof_html/至index.php提出任何要求。

当我请求<条码>思考mon骑士.me/runs时,没有发现闪lash。 页: 1

So, I infer that RewriteBase is not working.
What am I doing wrong?

问题回答

Alias需要尾弹。 这与RewriteBase无关。

如果需要的话,你可以采用改写规则来增加鞭.。 类似:

RewriteRule ^run$ /run/ [R=301,L]

将本条规则列入服务器根基的提存中(而不是/xhprof/xhprof_html)





相关问题
URL rewrite in IIS6 - Third party tools

I have collected the following api/sdk/whatever which provide modules for doing url rewriting in IIS 5/6/7. Some are free-open source and some require $. I haven t tried any of them. I would like to ...

Rewrite spring-security redirect URLs

I m trying to get Tuckey UrlRewriteFilter to tidy up URLs for my webapp. One problem I ve got is that when spring-security notices that an anonymous user is trying to access a protected resource it ...

ASP.NET Friendly URLs

In my research, I found 2 ways to do them. Both required modifications to the Application_BeginRequest procedure in the Global.Asax, where you would run your code to do the actual URL mapping (mine ...

Could I get by HttpModule the URL that contains * before?

My web-site is working under ASP.NET 3.5, IIS7, Integrated pipiline mode. My HttpModule is getting request to all resources, including URLs like this: http://my-site.com/address And I would support *...

Domains & Foreward Slash

This is rather difficult to explain so please bear with me. We will be hosting 4 websites on our server and the plan is to have each site sit under its own domain: site-a.com site-b.com sub1.site-b....

URL Mod-Rewrite

I currently have a working URL: http://example.com/security-services.php?service=fixed-camera-surveillance and then I have PHP say, $_REQUEST[ service ] to do some stuff... But I d like to ...

热门标签