Page 1 of 1

Address Rewrite Produces a 404

Posted: Fri Oct 14, 2005 2:39 am
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'] = '';

Re: Address Rewrite Produces a 404

Posted: Mon Oct 17, 2005 4:40 am
by trick
look in httpd.conf and check for the AllowOverride value, if it is set to None then try setting it to All

Re: Address Rewrite Produces a 404

Posted: Mon Oct 17, 2005 8:04 pm
by A Satisfied CMSMS User
Could you tell me where I can find this file?

Thanks a lot!

Re: Address Rewrite Produces a 404

Posted: Fri Oct 28, 2005 2:54 am
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.

Re: Address Rewrite Produces a 404

Posted: Fri Oct 28, 2005 6:39 pm
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';


Re: Address Rewrite Produces a 404

Posted: Sat Oct 29, 2005 4:28 pm
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.