rewriting

Please post all install related problems here. Visit this forum first for troubleshooting.
Post Reply
SNap
Posts: 314
Joined: Wed 5. May 2004, 10:45
Location: Passau, Bavaria, Germany
Contact:

rewriting

Post 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
'welcome to the real world!' datensysteme-lenk
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post 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
SNap
Posts: 314
Joined: Wed 5. May 2004, 10:45
Location: Passau, Bavaria, Germany
Contact:

Post by SNap »

I'll try. big thx!
'welcome to the real world!' datensysteme-lenk
Jan212
Posts: 859
Joined: Wed 28. Jan 2004, 21:38
Location: Solingen
Contact:

Post by Jan212 »

404 is related to wrng .htaccess configuration as dexxus said, you'll have to recheck
Regards/ Grüsse/ Groetjes - JAN212
------------------------------------------------
null212 - Büro für Kommunikation und Design
------------------------------------------------
Lyrikfetzen des Tages
1. Ist der Quelltext auch valide fragt Herr Müller ganz perfide.
2. Wat is dat een lekker ding.
3. Wer Vision hat soll zum Arzt gehen.
------------------------------------------------
Post Reply