Quantcast
Channel: URL Rewrite Module
Viewing all articles
Browse latest Browse all 2482

.htaccess file not in root folder - feature request and help

$
0
0

As we know ,if apache .htaccess file is in directory like

/var/www/example.com/templates/.htaccess


 and file path is

/var/www/example.com/templates/silver/images/logo.gif


 apache rewrite rule will work with 

silver/images/logo.gif

 

For example i have very easy rule from some framework

D:\Server\apache\htdocs\wa-data\public\contacts\photos

RewriteCond %{REQUEST_URI} \.jpg$

RewriteCond %{REQUEST_FILENAME} !-f

RewriteRule ^(.*)$ thumb.php [L,QSA]

IIS rewrite will convert it to

<rule name="Imported Rule 2" stopProcessing="true"><match url="^(.*)$" ignoreCase="false" /><conditions><add input="{URL}" pattern="\.jpg$" ignoreCase="false" /><add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" /></conditions><action type="Rewrite" url="thumb.php" appendQueryString="true" /></rule>

Ok, but iis rewrite don`t care about .htaccess location, root folder location, and thumb.php (it`s in the same dir) location

So, my question is - how to properly add information to that xml rule?

D:\Server\apache\htdocs\ is root folder

D:\Server\apache\htdocs\wa-data\public\contacts\photos is .htacess location and thumb.php location

Also , i think that will be nice for a lot of people - ability to convert .htaccess rewrite rules sonsidering its location/root location


Viewing all articles
Browse latest Browse all 2482

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>