CMSMS and problem with ErrorDocument 404 in .htaccess

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
farhadprm
Forum Members
Forum Members
Posts: 158
Joined: Mon May 28, 2007 2:40 pm

CMSMS and problem with ErrorDocument 404 in .htaccess

Post 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
Last edited by farhadprm on Wed Sep 26, 2007 6:46 pm, edited 1 time in total.
Pierre M.

Re: CMSMS and problem with ErrorDocument 404 in .htaccess

Post 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.
farhadprm
Forum Members
Forum Members
Posts: 158
Joined: Mon May 28, 2007 2:40 pm

Re: CMSMS and problem with ErrorDocument 404 in .htaccess

Post by farhadprm »

how can I risolve the problem with the broken links?? (the links that, don't exist more) :(

Thanks
Far
Pierre M.

Re: CMSMS and problem with ErrorDocument 404 in .htaccess

Post 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.
Post Reply

Return to “CMSMS Core”