I'm trying to use the rewrite function for better searchengine-results, but it does'nt work for me.
phpwcms is installed in a subdirectory; not in the root.
I have
- renamed _htaccess to .htaccess
- set
in conf.inc.php["rewrite_url"] = 1; //whether URL should be rewritable
$phpwcms
but I get 404-Error
The mod_rewrite module is loaded (php.info)
My .htaccess in the root directory looks like
Code: Select all
Redirect /index.htm http://www.personalabrechner.de/phpwcms/index?.php
# If phpwcms is installed in a subdirectory,
# sample: "mysubdir" then use this (remove #)
# if above lines doesn't work for you
# ===============================================
RewriteBase /phpwcms
RewriteRule ^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.phtml$ /phpwcms/index.php?id=$1.$2.$3.$4.$5.$6
RewriteRule ^(.+)\.phtml$ /phpwcms/index.php?$1
Sun