I have three sites running in a shared hosting (Bluehost) with a dedicated IP address. The description is as follow:
example.com
=> this is the main site and domain, is a WPexample.net
=> this is an add-on domain (don't know if you're familiar with the term) and is running another WP sitesubsite.example.net
=> this is a standalone PHP application
Each WP has it's own .htacess
file which looks like:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
With this .htaccess
file both WP sites works fine but the standalone application doesn't. If I remove the .htaccess
file then is the opposite, the standalone application works but the WP sites doesn't.
Can any help me to find a solution to this issue?
Update
I am playing with the following config for the .htaccess
file for the standalone PHP application:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]
# Add Caching.
<FilesMatch ".(ico|jpg|jpeg|png|gif|js|css|swf)$">
Header set Cache-Control "max-age=10800"
</FilesMatch>
# Prevent viewing of htaccess file.
<Files .htaccess>
order allow,deny
deny from all
</Files>
# Prevent directory listings
Options All -Indexes
# Compress text, html, javascript, css, xml:
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
</IfModule>
but is not working since I am kick out of the application as soon as I click on any link.
The standalone site lives at /public_html/plataforma
while the WP lives at /public_html
. Why I am doing wrong at this point?