Copy the following lines and paste them into a file named .htaccess in the root of your install directory. If the install is elsewhere than in the root of your site, you will need to change the existing path so that it will point to the actual index.php directory.
#try to use mod_rewrite <IfModule mod_rewrite.c> RewriteEngine On #RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> #else use the ErrorDocument <IfModule !mod_rewrite.c> ErrorDocument "404" ./index.php </IfModule>
Copy the following lines and paste them into a file named web.config in the root of your install web domain. If the install is elsewhere than in the root of your site, you will need to change the existing path so that it will point to the actual index.php directory.
<?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <directoryBrowse enabled="false" /> <defaultDocument> <files> <clear /> <add value="index.php" /> </files> </defaultDocument> <customErrors mode="On" defaultRedirect="/index.php"> <error statusCode="404" redirect="/index.php" /> </customErrors> </system.webServer> </configuration>