Address Rewrite Produces a 404

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.
Locked
A Satisfied CMSMS User

Address Rewrite Produces a 404

Post by A Satisfied CMSMS User »

My addresses are rewritten correctly, but following the links produces 404's.

I sure would appreciate any help or suggestions on this.  Thank you very much.

My .htaccess File:

Code: Select all

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
RewriteRule ^(.+) index.php?page=$1 [QSA]
Excerpt from My config.php File:

Code: Select all

$config['assume_mod_rewrite'] = true;
$config['auto_alias_content'] = true;
$config['page_extension'] = '';
trick

Re: Address Rewrite Produces a 404

Post by trick »

look in httpd.conf and check for the AllowOverride value, if it is set to None then try setting it to All
A Satisfied CMSMS User

Re: Address Rewrite Produces a 404

Post by A Satisfied CMSMS User »

Could you tell me where I can find this file?

Thanks a lot!
trick

Re: Address Rewrite Produces a 404

Post by trick »

It's usually at /etc/apache2/httpd.conf

if there's nothing there then look at the config for the initscript (probably in /etc/conf.d/apache2 ) you used to start apache. there should be a configdir value or something that tells you where to look.

Of course if you don't have your own server you might have to ask someone else to do this for you.
kishman155
Translator
Translator
Posts: 169
Joined: Sat Mar 12, 2005 12:30 pm

Re: Address Rewrite Produces a 404

Post by kishman155 »

A Satisfied CMSMS User wrote: My addresses are rewritten correctly, but following the links produces 404's.

I sure would appreciate any help or suggestions on this. Thank you very much.

My .htaccess File:

Code: Select all

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
RewriteRule ^(.+) index.php?page=$1 [QSA]
Excerpt from My config.php File:

Code: Select all

$config['assume_mod_rewrite'] = true;
$config['auto_alias_content'] = true;
$config['page_extension'] = '';
try this

Code: Select all

$config['assume_mod_rewrite'] = true;
$config['auto_alias_content'] = true;
$config['page_extension'] = '.shtml';

A Satisfied CMS User

Re: Address Rewrite Produces a 404

Post by A Satisfied CMS User »

Thanks for the help.

I'll have to contact the host, as the apache configuration file is hidden from me.
Locked

Return to “CMSMS Core”