Custom 404 error page doesn't function Rewrite Urls [Solved]
Posted: Thu Dec 19, 2013 1:14 am
I am using URL rewrite in my sites .htaccess file so we have pretty URL's.
This is also blocking my custom designed 404 error page code in the same .htaccess file.
ErrorDocument 404 /404.php
CMSms version 1.10.3
Commenting out the URL rewrite code proves that the (ErrorDocument 404 /404.php) does function.
<IfModule mod_rewrite.c>
RewriteEngine on
#
#Sub-dir e.g: /cmsms
RewriteBase /
# 301 Redirect all requests that don't contain a dot or trailing slash to
# include a trailing slash
# but ignore POST requests.
#RewriteCond %{REQUEST_URI} !/$
#RewriteCond %{REQUEST_URI} !\.
#RewriteCond %{REQUEST_METHOD} !POST$
#RewriteRule ^(.*) %{REQUEST_URI}/ [R=301,L]
# Rewrites urls in the form of /parent/child/
# but only rewrites if the requested URL is not a file or directory
#
Your help is greatly appreciated.
Thank you
This is also blocking my custom designed 404 error page code in the same .htaccess file.
ErrorDocument 404 /404.php
CMSms version 1.10.3
Commenting out the URL rewrite code proves that the (ErrorDocument 404 /404.php) does function.
<IfModule mod_rewrite.c>
RewriteEngine on
#
#Sub-dir e.g: /cmsms
RewriteBase /
# 301 Redirect all requests that don't contain a dot or trailing slash to
# include a trailing slash
# but ignore POST requests.
#RewriteCond %{REQUEST_URI} !/$
#RewriteCond %{REQUEST_URI} !\.
#RewriteCond %{REQUEST_METHOD} !POST$
#RewriteRule ^(.*) %{REQUEST_URI}/ [R=301,L]
# Rewrites urls in the form of /parent/child/
# but only rewrites if the requested URL is not a file or directory
#
Your help is greatly appreciated.
Thank you