Here is a excerpt from my .htaccess located in the public_html folder:
"Errorpage.htm" does not exist anymore. The rewriterule works if the following code is commented out:Code:RewriteEngine On #rewrite rule for redirection RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.+)$ redirection.php?REQUEST_URI=%{REQUEST_URI} [NC,QSA] #custom error page RewriteRule ^errorpage.htm$ errorpage.php [R=301,NC]
What I want is nonexisting files and directories to be redirected to "redirection.php" except if the file is "errorpage.htm"Code:RewriteRule ^(.+)$ redirection.php?REQUEST_URI=%{REQUEST_URI} [NC,QSA]
What is the best way to do this?



Reply With Quote

Bookmarks