I need to keep two sites in the same hosting (one I've developed, let's call site 01) and another one which is a Wordpress created by the old company that served the client (We call site 02).
The directory structure looks like this:
- / common (My new site)
- / en (My new site)
- / en (My new site)
- / es (My new site)
- / site02 (Wordpress)
- .htaccess (My new site)
- index.php (My new site)
- web.config (Wordpress)
Web.config causes my site to stop working when entering some internal page. When removing the web.config and leaving the htaccess, who to is the site02. I tried to move web.config into the / site02 directory, but it still did not work. It gives you some infinite looping errors.
I do not know what else to do.
My root HTACCESS:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(common|sistema|upload|tubosapolo)($|/) - [L]
RewriteRule !\.(css|js|xml|bmp|swf|flv|ico|html|pdf|woff|ttf|svg|eot|zip|mp3|jpg|png|gif|jpeg|ai|eps|ico)$ index.php [L]
</IfModule>
The web.config content of the root:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<httpErrors errorMode="Custom">
<remove statusCode="404" subStatusCode="-1" />
<error statusCode="404" prefixLanguageFilePath="" path="/tubosapolo/index.php" responseMode="ExecuteURL" />
</httpErrors>
<rewrite>
<rules>
<rule name="Tubos Apolo" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="index.php{R:0}" />
</rule>
</rules>
</rewrite>
</system.webServer>
If I remove my htaccess, site02 works. But my internal pages from site01 all go to site40's 404. This I do not understand!
Can anyone help me?