Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 27852

Rewrite subfolder to another directory?

$
0
0

I have a config file that I have all my rewrite rules setup in.  Currently i have a subdirectory that I want to redirect to another directory.

example. mydomain.com/test that I want to rewrite to mydomain.com/correctdirectory

What's the prefect rule for this situation where it will still allow me to redirects on the root folder?

I've tried the following rule but it ends up breaking a rule that I have setup for my root index.html file.

<rule name="test/" stopProcessing="true" ><match url="^test/$" /><action type="Redirect" url="http://mydomain/correctdirectory" redirectType="Permanent" /></rule>




Viewing all articles
Browse latest Browse all 27852

Trending Articles



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