URL rewrite (subdomain)
-
Hello I am hosting my site on winhost and they do not have full subdomain functionality. So I had to redirect the subdomain so that it would point to a subdirectory. i have subdirectory “support1” installed under my root directory and i changed my root directory’s web.config to the following:
<?xml version=”1.0″ encoding=”UTF-8″?>
<configuration>
<system.webServer>
<validation validateIntegratedModeConfiguration=”false”/>
<modules runAllManagedModulesForAllRequests=”true”/><rewrite>
<rules>
<clear /><!– Spatialwave Website Support1 –>
<rule name=”spatialwave-Web-support1″ enabled=”true” stopProcessing=”true”>
<match url=”(.*)” />
<conditions logicalGrouping=”MatchAll” trackAllCaptures=”false”>
<add input=”{HTTP_HOST}” pattern=”^www\.support1\.spatialwave\.com$” />
</conditions>
<action type=”Redirect” url=”https://support1.spatialwave.com/{R:0}” />
</rule><rule name=”spatialwave-Web-support1-rewrite” enabled=”true” stopProcessing=”true”>
<match url=”(.*)” />
<conditions logicalGrouping=”MatchAll” trackAllCaptures=”false”>
<add input=”{HTTP_HOST}” pattern=”^(www\.)?support1\.spatialwave\.com$” />
<add input=”{PATH_INFO}” pattern=”^/support1/($|/)” negate=”true” />
</conditions>
<action type=”Rewrite” url=”/support1/{R:0}” />
</rule></rules>
</rewrite>
<urlCompression doStaticCompression=”true” doDynamicCompression=”true” />
</system.webServer>
</configuration>So now when someone visits support1.spatialwave.com they are redirected to the subdirectory but the url does not change. However all the other pages on the site have the url of spatialwave.com/support1 and i want the url of all these pages to be changed as well and i figured i have to chenge something in the WordPress setting. Any help on this issue would be hugely appreciated.
- The topic ‘URL rewrite (subdomain)’ is closed to new replies.