Bypassing 404 pages
-
I have a separate invoicing PHP application on my server in a folder named “clients”
But when I go to mydomain.com/clients I get a wordpress 404 Page error in when it should bring up the login screen for the invoicing PHP application at that directory.
is there a way I can override the wordpress 404 error so that I can access the PHP application in the /clients folder?
I have tried editing the .htaccess file following directions on a stackexchange answer to a similar question, but when I edit I get a 500 error on my entire site. Any suggestions or any way to modify the 404.php file or a plugin I can use?
Here is the .htaccess edit I have tried:
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /mydomain/ RewriteRule ^index\.php$ – [L] RewriteRule ^/?clients(/|$) – [END,NC] #<<<<<<<<<<<<THIS IS THE LINE I ADDED RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /mydomain/index.php [L] </IfModule> # END WordPress
[Moderator note: code fixed. Please wrap code in the backtick character or use the code button.]
- The topic ‘Bypassing 404 pages’ is closed to new replies.