English 中文(简体)
Htaccess redirect orrewrite
原标题:Htaccess redirect or rewrite

在英国国家航天中心转播之前,正在测试一个站点。 http://IP_ADDRESS/~name/。

履历表上载的所有图像均列于<img src=”/uploads/images/">

但是,这并不奏效,而只是花一米时间审查URL。 理想的是,我需要将<代码>/上载/*转至/~name/uploads/*

I was wondering if this should be a redirect or a rewrite in htaccess and what the rule might be?

感谢。

最佳回答

这是你根据《裁军部章程》在座右铭上所需要的手法。 ROOT:

Options +FollowSymLinks -MultiViews
# Turn mod_rewrite on
RewriteEngine On
RewriteBase /

RewriteRule ^uploads/ ~name%{REQUEST_URI} [L,NC]
问题回答

暂无回答




相关问题
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 ...

热门标签