Page 1 of 1
rewriting
Posted: Sat 8. May 2004, 08:27
by SNap
hi,
i tried to use the rewriting function.. i switched in config, renamed _.htaccess...
when i call any page, then i get a 404!
what do i do wrong?
Cheers
SNap
Posted: Sat 8. May 2004, 08:56
by DeXXus
If phpWCMS was not installed in your web root, you should uncomment these lines, replace "mysubdir" with your "actual" sub-directory name, and place the .htaccess file in "that" sub-directory:
Code: Select all
# If phpwcms is installed in a subdirectory,
# sample: "mysubdir" then use this (remove #)
# if above lines doesn't work for you
# ===============================================
#RewriteBase /mysubdir
#RewriteRule ^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.shtml$ /mysubdir/index.php?id=$1.$2.$3.$4.$5.$6
#RewriteRule ^(.+)\.shtml$ /mysubdir/index.php?$1
Also, your web host may not allow you to use the following entries from .htaccess file, so you can try "commenting" them out "one-by-one" and re-try:
Code: Select all
# These settings are recommend
# Maybe you might have problems
# with other scripts that needs
# register_globals ON
php_flag magic_quotes_gpc Off
php_flag register_globals Off
Posted: Sat 8. May 2004, 09:14
by SNap
I'll try. big thx!
Posted: Sat 8. May 2004, 14:12
by Jan212
404 is related to wrng .htaccess configuration as dexxus said, you'll have to recheck