Page 2 of 2

Re: mod_rewrite en news module

Posted: Thu Apr 28, 2011 8:47 pm
by RonnyK
Extra vraagje? Gebruik je NewsURLs, of heb je die niet apart opgegeven in News-artikelen?

Let op: hiervoor staat nog 1 post ;)

Ronny

Re: mod_rewrite en news module

Posted: Thu Apr 28, 2011 9:08 pm
by Masweb
Het is ongelooflijk, maar heb hem nu op dit domein geplaatst.

www.wepklup.nl

Daar heb ik de news module ge-uninstall
en daarna een nieuwe install

Probeer hier: http://www.wepklup.nl/nieuws.html

Voor de duidelijkheid hier mijn htaccess en de config:

Code: Select all

# Attempt to override some php settings, these settings may be helpful on some hosts if your
# default configuration does not meet CMS's minimum requirements, and your host
# has given your account appropriate permissions
#php_value upload_max_filesize "10M"
#php_value session_save_path "tmp/cache"

#php_flag magic_quotes_gpc Off
#php_flag register_globals Off
#php_flag session.use_trans_sid Off

# (this is important, so uncomment if your host permit)
#Options -Indexes
#ServerSignature Off
#
Options +FollowSymLinks
#
<IfModule mod_rewrite.c>
RewriteEngine on
#
#Sub-dir e.g: /cmsms
RewriteBase /

#
# 301 Redirect all requests that don't contain a dot or trailing slash to
# include a trailing slash
# but ignore POST requests.
#RewriteCond %{REQUEST_URI} !/$
#RewriteCond %{REQUEST_URI} !\.
#RewriteCond %{REQUEST_METHOD} !POST$
#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?page=$1 [QSA]
</IfModule>

Code: Select all

#------------
#URL Settings
#------------

#What type of URL rewriting should we be using for pretty URLs?  Valid options are:
#'none', 'internal', and 'mod_rewrite'.  'internal' will not work with IIS some CGI
#configurations. 'mod_rewrite' requires proper apache configuration, a valid
#.htaccess file and most likely {metadata} in your page templates.  For more
#information, see:
#http://wiki.cmsmadesimple.org/index.php/FAQ/Installation/Pretty_URLs#Pretty_URL.27s
$config['url_rewriting'] = 'mod_rewrite';

#Extension to use if you're using mod_rewrite for pretty URLs.
$config['page_extension'] = '.html';

#If using none of the above options, what should we be using for the query string
#variable?  (ex. http://www.mysite.com/index.php?page=somecontent)
$config['query_var'] = 'page';
Antwoorden op de vragen: Nee ik heb geen NewsURLs gebruikt.
Ik had al wel aanpassingen gedaan aan de templates, maar die zijn nu dus teniet gedaan in die nieuwe versie

Re: mod_rewrite en news module

Posted: Fri Apr 29, 2011 5:35 am
by RonnyK
zou je mij eens een login willen geven voor die site. Een account zou je even via PM kunnen sturen.

Dan probeer ik er vandaag even naar te kijken.

Ronny

Re: mod_rewrite en news module

Posted: Fri Apr 29, 2011 8:01 pm
by Masweb
Na een fantastisch ondersteuning door RonnyK, wat helaas niet de oplossing heeft gegeven heb ik de stoute schoenen aangetrokken en ben helemaal opnieuw begonnen met als enige verschil dat ik de mod_rewrite direct na installatie heb ingesteld.

Daarna heb ik telkens na iets toegevoegd te hebben getest of het nog werkte. Tot op heden geen problemen. Ik zit nu op hetzelfde punt waar ik met de eerdere site ook was en GEEN problemen. Het werkt allemaal perfect, Zelfs op het subdomein.

Aan de ene kant gelukkig aan de andere kant jammer dat we de fout niet hebben kunnen achterhalen.

Toch wil ik iedereen danken voor het meedenken!
In het vervolg zal mijn volgorde de volgende zijn.
  • * CMSMS instaleren.
    * Nodige CMOD's uitvoeren
    * config file aanmaken
    * database aanmaken
    * instaleren
    * "mod_rewrite" instellen incl .htaccess file