Home > CPanel / WHM, Uncategorized > 404 error code for all third party applications

404 error code for all third party applications

December 14th, 2011

404 error code for all third party applications


Copy and paste the code in .htaccess file
 
For main domain only

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
 
Below one for the subdomain
 
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /subdirectory/
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /subdirectory/index.php [L]
</IfModule>
 
Categories: CPanel / WHM, Uncategorized Tags:
Comments are closed.