combining force-www with clean urls

CLOSED

combining force-www with clean urls

Postby newnomad » Wed Jun 30, 2010 12:36 pm

I am trying to combine force-www with clean urls, they work independantly, but not together. What am I missing?
Code: Select all
<IfModule mod_rewrite.c>

RewriteEngine on
### FORCE WWW
    RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
    RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
RewriteBase /

### LANGUAGE REDIRECT RULES start
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(en|nl)-?()?\/(.*\/?)$ index.php?language=$1&region=$2&symphony-page=$3&%{QUERY_STRING} [L]
### LANGUAGE REDIRECT RULES end

### FRONTEND REWRITE - Will ignore files and folders
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*\/?)$ ./index.php?symphony-page=$1&%{QUERY_STRING}  [L]

</IfModule>


However this results in none of my pages being found. FYI A language redirect adds country-code parameters to the url on load.
newnomad
 
Posts: 2
Joined: Wed Mar 08, 2006 1:35 pm

Return to New Threads/Problems

Who is online

Users browsing this forum: No registered users and 2 guests

cron