[OPGELOST] vreemd/vaag pretty url probleem
Posted: Sat Oct 09, 2010 2:00 pm
hi
Ik heb een vaag pretty url probleem. ik ben een site voor een collega aan het bouwen. Ik loop nu tegen het volgende probleem aan. Ik heb op mijn domein deze site voor proef gebouwd omdat het de eerste keer is dat ik met cmsms een site bouw.
Nu heb ik na enige geklungel en geklooi en met hulp van iemand anders de site /het cms aan de gang gekregen en de instellingen in het .htacces en conifg.php bestand ingesteld .
Nu heb ik op het domein van mijn collega een nieuwe schone install gedaan en daar dezelfde instellingen in het .htaccess en het config.php gedaan en toch krijg ik geen pretty urls terwijl de website is bij dezelfde hostingprovider is onder is gebracht. Mijn vraag is: is het mogelijk dat het server van de hosting ligt of heeft iemand anders een idee waar dit aan kan liggen??
dit zijn mijn .htaccess en mijn config.php instellingen:
.HTACCESS
# 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
#
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]
CONFIG.PHP
$config['url_rewriting'] = 'mod_rewrite';
#Extension to use if you're using mod_rewrite for pretty URLs.
$config['page_extension'] = '.html';
#If you're using the internal pretty url mechanism or mod_rewrite, would you like to
#show urls in their hierarchy? (ex. http://www.mysite.com/parent/parent/childpage)
$config['use_hierarchy'] = true;
#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';
iemand een idee waar dit aan ligt??
alvast bedankt
Ik heb een vaag pretty url probleem. ik ben een site voor een collega aan het bouwen. Ik loop nu tegen het volgende probleem aan. Ik heb op mijn domein deze site voor proef gebouwd omdat het de eerste keer is dat ik met cmsms een site bouw.
Nu heb ik na enige geklungel en geklooi en met hulp van iemand anders de site /het cms aan de gang gekregen en de instellingen in het .htacces en conifg.php bestand ingesteld .
Nu heb ik op het domein van mijn collega een nieuwe schone install gedaan en daar dezelfde instellingen in het .htaccess en het config.php gedaan en toch krijg ik geen pretty urls terwijl de website is bij dezelfde hostingprovider is onder is gebracht. Mijn vraag is: is het mogelijk dat het server van de hosting ligt of heeft iemand anders een idee waar dit aan kan liggen??
dit zijn mijn .htaccess en mijn config.php instellingen:
.HTACCESS
# 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
#
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]
CONFIG.PHP
$config['url_rewriting'] = 'mod_rewrite';
#Extension to use if you're using mod_rewrite for pretty URLs.
$config['page_extension'] = '.html';
#If you're using the internal pretty url mechanism or mod_rewrite, would you like to
#show urls in their hierarchy? (ex. http://www.mysite.com/parent/parent/childpage)
$config['use_hierarchy'] = true;
#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';
iemand een idee waar dit aan ligt??
alvast bedankt