Pretty URL MLE-Version and Guestbook

This is a FORK of the CMS Made Simple project and is not oficially supported in any way by the CMS Made Simple development team.
Locked
itechnique
New Member
New Member
Posts: 2
Joined: Sat Nov 28, 2009 2:10 pm

Pretty URL MLE-Version and Guestbook

Post by itechnique »

I use CMSMS MLE with version 1.6.3
I've the problem, that my guestbook doesn't work anymore after I activated pretty url. The first page is displayed, but as soon as I want to add a new entry, or to view older entries error 404 occurs. I think this is just a problem in the mle-Version. For the news module there's a solution in the manual but not for the guestbook. This is an example of a wrong rewritten url: http://i-technique.ch/Gaestebuch?next=6 instead of http://i-technique.ch/de_DE/Gaestebuch?next=6. How can I change this? My htaccess file you find below.

# Options +FollowSymLinksOptions +FollowSymLinks
  RewriteEngine on
  RewriteBase /

  # ReWrite Rule für News-Feed
  RewriteRule ^News/rss(.+)$ index.php?page=News/rss$1

  # 301 Redirect all requests that don't contain a dot or trailing slash to
  # include a trailing slash
  # RewriteCond %{REQUEST_URI} !/$
  # RewriteCond %{REQUEST_URI} !\.
  # RewriteRule ^(.*) %{REQUEST_URI}/ [R=301,L]

  # Rewrites urls in the form of /parent/child/
  # but only rewrites if the requested URL is not a file or directory
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.+)/(.+)$ index.php?hl=$1&page=$2 [QSA]
  RewriteCond %{REQUEST_URI} !^/index.php?page=Gaestebuch
# Beginn CMSMS Security Einstellungen.

# Directory Browsing abschalten
Options -Indexes
# Options +FollowSymLinks

# Zugriff auf config.php verbieten.


order allow,deny
deny from all


# No sense advertising what we are running
ServerSignature Off

# Spambots nach User_agent aussperren
RewriteCond %{HTTP_USER_AGENT} ^.*Whacker.*$ [OR]
RewriteCond %{HTTP_USER_AGENT} ^EmailCollector [OR]
RewriteCond %{HTTP_USER_AGENT} ^EmailSiphon [OR]
RewriteCond %{HTTP_USER_AGENT} ^EmailWolf [OR]
RewriteCond %{HTTP_USER_AGENT} ^.*FileHound.*$ [OR]
RewriteCond %{HTTP_USER_AGENT} ^.*TurnitinBot.*$ [OR]
RewriteCond %{HTTP_USER_AGENT} ^.*JoBo.*$ [OR]
RewriteCond %{HTTP_USER_AGENT} ^.*adressendeutschland.*$
RewriteRule ^.* - [F]

# 1. unterbindet, das fremde Seiten geladen werden
RewriteCond %{QUERY_STRING} ^(.*)=http://(.*) [OR]

# 2. blockiert libwww (Ausgangspunkt f¸r diverse Hackversuche)
RewriteCond %{HTTP_USER_AGENT} ^libwww [OR]

# Blockiert Skripte, die versuchen, base64 encodierten Unsinn via URL zu versenden
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]

# Blockiert Skripte, die einen a ********** Tag in der URL enthalten
RewriteCond %{QUERY_STRING} (\|%3E) [NC,OR]

# Blockiert Skripte, die versuchen, PHP GLOBALS Variablen via URL zu ver‰ndern
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]

# Blockiert Skripte, die versuchen, eine _REQUEST Variable via URL zu ver‰ndern
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2}) [OR]

# END Optional Settings

Thanks a lot for your help!
trastevere
New Member
New Member
Posts: 9
Joined: Mon Jul 12, 2010 4:51 pm

Re: Pretty URL MLE-Version and Guestbook

Post by trastevere »

I saw that you solved this problem on your site. Can you share with us the solution? I've modified the Guestbook class to solve this problem, but maybe your solution is a more elegant one.

Thx.
Locked

Return to “[locked] CMSMS MLE fork”