SchreuderSMC
Gebruiker
- Lid geworden
- 13 mrt 2014
- Berichten
- 31
Beste,
Ik heb hieronder een code voor htaccess www.domain.com/category.php. Ik heb ook een engelse versie van de site. Daar moeten de urls ook veranderd worden. Maar wat ik ook doe, het werkt niet. De engelse versie is www.domain.com/en/category.php
Options -MultiViews
RewriteEngine on
RewriteBase /
RewriteCond %{THE_REQUEST} \s/+category\.php\?category1=([^\s&]+)&category2=([^\s&]+)&category3=([^\s&]+)&category4=([^\s&]+)&category5=([^\s&]+)\s [NC]
RewriteRule ^ category/%1/%2/%3/%4/%5? [R=301,L]
RewriteCond % {THE_REQUEST}\s/+category\.php\?category1=([^\s&]+)&category2=([^\s&]+)&category3=([^\s&]+)&category4=([^\s&]+)\s [NC]
RewriteRule ^ category/%1/%2/%3/%4? [R=301,L]
RewriteCond %{THE_REQUEST} \s/+category\.php\?category1=([^\s&]+)&category2=([^\s&]+)&category3=([^\s&]+)\s [NC]
RewriteRule ^ category/%1/%2/%3? [R=301,L]
RewriteCond %{THE_REQUEST} \s/+category\.php\?category1=([^\s&]+)&category2=([^\s&]+)\s [NC]
RewriteRule ^ category/%1/%2? [R=301,L]
RewriteCond %{THE_REQUEST} \s/+category\.php\?category1=([^\s&]+)\s [NC]
RewriteRule ^ category/%1/? [R=301,L]
RewriteRule ^category/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/?$ category.php?category1=$1&category2=$2&category3=$3&category4=$4&category5=$5 [L,QSA,NC]
RewriteRule ^category/([^/]+)/([^/]+)/([^/]+)/([^/]+)/?$ category.php?category1=$1&category2=$2&category3=$3&category4=$4 [L,QSA,NC]
RewriteRule ^category/([^/]+)/([^/]+)/([^/]+)/?$ category.php?category1=$1&category2=$2&category3=$3 [L,QSA,NC]
RewriteRule ^category/([^/]+)/([^/]+)/?$ category.php?category1=$1&category2=$2 [L,QSA,NC]
RewriteRule ^category/([^/]+)/?$ category.php?category1=$1 [L,QSA,NC]
Ik heb hieronder een code voor htaccess www.domain.com/category.php. Ik heb ook een engelse versie van de site. Daar moeten de urls ook veranderd worden. Maar wat ik ook doe, het werkt niet. De engelse versie is www.domain.com/en/category.php
Options -MultiViews
RewriteEngine on
RewriteBase /
RewriteCond %{THE_REQUEST} \s/+category\.php\?category1=([^\s&]+)&category2=([^\s&]+)&category3=([^\s&]+)&category4=([^\s&]+)&category5=([^\s&]+)\s [NC]
RewriteRule ^ category/%1/%2/%3/%4/%5? [R=301,L]
RewriteCond % {THE_REQUEST}\s/+category\.php\?category1=([^\s&]+)&category2=([^\s&]+)&category3=([^\s&]+)&category4=([^\s&]+)\s [NC]
RewriteRule ^ category/%1/%2/%3/%4? [R=301,L]
RewriteCond %{THE_REQUEST} \s/+category\.php\?category1=([^\s&]+)&category2=([^\s&]+)&category3=([^\s&]+)\s [NC]
RewriteRule ^ category/%1/%2/%3? [R=301,L]
RewriteCond %{THE_REQUEST} \s/+category\.php\?category1=([^\s&]+)&category2=([^\s&]+)\s [NC]
RewriteRule ^ category/%1/%2? [R=301,L]
RewriteCond %{THE_REQUEST} \s/+category\.php\?category1=([^\s&]+)\s [NC]
RewriteRule ^ category/%1/? [R=301,L]
RewriteRule ^category/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/?$ category.php?category1=$1&category2=$2&category3=$3&category4=$4&category5=$5 [L,QSA,NC]
RewriteRule ^category/([^/]+)/([^/]+)/([^/]+)/([^/]+)/?$ category.php?category1=$1&category2=$2&category3=$3&category4=$4 [L,QSA,NC]
RewriteRule ^category/([^/]+)/([^/]+)/([^/]+)/?$ category.php?category1=$1&category2=$2&category3=$3 [L,QSA,NC]
RewriteRule ^category/([^/]+)/([^/]+)/?$ category.php?category1=$1&category2=$2 [L,QSA,NC]
RewriteRule ^category/([^/]+)/?$ category.php?category1=$1 [L,QSA,NC]