I am transferring a Apache Rewrite rule for a LAMP solution to a new C# MVC3 solution using URL Rewrite module.
In its CSS files, for all image file references (for example *.png files), it is adding a querystring expression
*.png?{VERSION}:
div.build3-top-nav-logo {
width: 981px;
height: 110px; /* 75px; */
background: url(/Content/graphics/top-nav-logo.png?{VERSION} ) scroll transparent top center no-repeat;
}
In it Apache .htaccess, under mod_rewrite section:
RewriteRule . /resource.php?file=%0
The referred to file within the aforementioned RewriteRule resource.php re-labels "{VERSION}" with a random version number to refresh item in cache (in PHP):
You have posted the php source code, it's a little difficult to grasp your question for me. And I suggest you check this general article about Url Rewriting Module, it elaborates what ulr manipulation tasks the URL Rewriting perform. I hope it helps you
to kown whether the url rewriting module can complement your requirement:
jeff00seattl...
41 Posts
Trying to transfer a Apache Rewrite rule for LAMP solution to ISS URL Rewrite module for C# MVC3 ...
Apr 10, 2012 03:02 PM|LINK
I am transferring a Apache Rewrite rule for a LAMP solution to a new C# MVC3 solution using URL Rewrite module.
In its CSS files, for all image file references (for example *.png files), it is adding a querystring expression *.png?{VERSION}:
div.build3-top-nav-logo {apache rewrite php rewrite rule
Jeff in Seattle
Mamba Dai - ...
651 Posts
Microsoft
Re: Trying to transfer a Apache Rewrite rule for LAMP solution to ISS URL Rewrite module for C# M...
Apr 12, 2012 11:04 AM|LINK
Hi,
You have posted the php source code, it's a little difficult to grasp your question for me. And I suggest you check this general article about Url Rewriting Module, it elaborates what ulr manipulation tasks the URL Rewriting perform. I hope it helps you to kown whether the url rewriting module can complement your requirement:
http://learn.iis.net/page.aspx/460/using-the-url-rewrite-module/
Feedback to us
Develop and promote your apps in Windows Store