Page 1 of 1

CMSMS and problem with ErrorDocument 404 in .htaccess

Posted: Wed Sep 26, 2007 4:25 pm
by farhadprm
Hi all,

I need to made some modification in .htaccess file for Error 404:

Code: Select all

ErrorDocument 404 http://www.domain.tld/
The above code works, but if I try to combine it with other codes, it does not work:

Code: Select all

ErrorDocument 404 /index.php?page=home

#php_flag magic_quotes_gpc Off
#php_flag register_globals Off
#php_flag session.use_trans_sid Off

# Make sure you have Options FollowSymLinks
# and Allow on
RewriteEngine On

#Rewrites page.shtml as index.php?page
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
Thanks
far

Re: CMSMS and problem with ErrorDocument 404 in .htaccess

Posted: Thu Sep 27, 2007 11:34 am
by Pierre M.
Hello,
farhadprm wrote:

Code: Select all

ErrorDocument 404 http://www.domain.tld/
The above code works, but if I try to combine it with other codes, it does not work:

Code: Select all

ErrorDocument 404 /index.php?page=home
I would say that

Code: Select all

Available assets +123
can't be "combined with"

Code: Select all

Available assets -456
unless you are in another universe ;-)

Pierre M.

Re: CMSMS and problem with ErrorDocument 404 in .htaccess

Posted: Thu Sep 27, 2007 12:14 pm
by farhadprm
how can I risolve the problem with the broken links?? (the links that, don't exist more) :(

Thanks
Far

Re: CMSMS and problem with ErrorDocument 404 in .htaccess

Posted: Thu Sep 27, 2007 1:41 pm
by Pierre M.
Hello again,

I'm not sure I understand your question very well, but may be this can help you :
-remove all ErrorDocument 404 lines in your .htaccess
-use CMSms builtin 404 feature (see global settings in your admin panel).

Pierre M.