php - Translating a web.config setup into .htaccess -


i have working config file on host's .net server wanted move php 5.3 can use wordpress. anyway, guy. (it set 2 different subdomains redirecting same subfolder , keeping subdomain name in dir bar).

    <rule name="atmittens.com.ar" stopprocessing="true">         <match url=".*" />         <conditions>             <add input="{http_host}" pattern="^(www.)?aastudio.com.ar$" />             <add input="{path_info}" pattern="^/aastudio/" negate="true" />         </conditions>         <action type="rewrite" url="\aastudio\{r:0}" />     </rule>      <rule name="studioaa.com.ar" stopprocessing="true">         <match url=".*" />         <conditions>             <add input="{http_host}" pattern="^(www.)?studioaa.com.ar$" />             <add input="{path_info}" pattern="^/aastudio/" negate="true" />         </conditions>         <action type="rewrite" url="/aastudio/{r:0}" />     </rule>  </rules> 

thank much!

ignacio

i think should work:

<ifmodule mod_rewrite.c> rewriteengine on  rewritecond %{http_host} ^(www.)?aastudio.com.ar$ rewritecond %{path_info} !^/aastudio/ rewriterule .* \aastudio\$0 [l]  rewritecond %{http_host} ^(www.)?studioaa.com.ar$ rewritecond %{path_info} !^/aastudio/ rewriterule .* /aastudio/$0 [l] </ifmodule> 

Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -