i want to have clean urls for my website http://www.diasdigitalisieren.info. there is a howto in the wiki# http://www.cmsimplewiki.com/doku.php/ti ... /clean_url that i followed. as described i
"1) Edit the file cmsimple/cms.php. Add
Code: Select all
if($cf['urlrewrite']['base']!='')$sn=$cf['urlrewrite']['base'];
2) Search for and replace function a() with
Code: Select all
function a($i,$x) {
global $sn,$u,$cf;
return '<a href="'.$sn.($cf['urlrewrite']['base']?'':'?').$u[$i].$x.($cf['urlrewrite']['base']?'.html':'').'">';
}
3) Edit the file cmsimple/config.php. Add at its very end the variable:
Code: Select all
$cf['urlrewrite']['base']="/";
$cf['urlrewrite']['base']="/subdirectory/"; instead."
The system is producing clean URLs now, but in a strange way.
the start page http://www.diasdigitalisieren.info opens as usually, but when i go to a h1-subdiretory like "Download" theURL looks like
Code: Select all
http://diasdigitalisieren.info/diasdigitalisieren.info/Download.html
when i execute the next step of the tutorial
"4) On your workstation generate a file called htaccess.txt. (Windows does not allow to generate a file called .htaccess.) fill this file with:
Code: Select all
RewriteEngine on
# To prevent loop:
RewriteCond %{REQUEST_URI} !index.php
# Do not rewrite requests to template or images dir:
RewriteCond %{REQUEST_URI} !templates
RewriteCond %{REQUEST_URI} !images
# Do not rewrite requests with any query strings:
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^(.*)\.html$ /index.php?$1
it does not solve the problem- the only result is, that i get another kind of error message
it is now "Fehler 404: Nicht gefunden" but now not on a blank page, but on a kind of shattered version of my site-template. the url of the h1-submenu is still
Code: Select all
http://diasdigitalisieren.info/diasdigitalisieren.info/Download.html
1. i'm using CMSIMPLE SE in version 2007g
2. cms.php is protected by cracker tracker http://www.cback.de/cback_software/standalonect.php since my website has been hacked
3. the website is located in a subdirectory on the webserver. there i placed the htaccess-file, too. there is no htaccess file in the root directory.
4. cms.php has access right 644 and config.php has access right 646.
has anybody an idea what i can do next to solve this problem? i searched all three forums now, but could not find a solution.