Forum Moderators: phranque
RewriteEngine On
RewriteCond %{HTTP_HOST} !^login\.site\.se\/data$ [NC]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)\/(.*)\/$ ?arg1=$1&arg2=$2 [L]
RewriteRule ^(.*)\/(.*)\/(.*)\/$ ?arg1=$1&arg2=$2&arg3=$3 [L]
RewriteRule ^(.*)\/(.*)\/(.*)\/(.*)\/$ ?arg1=$1&arg2=$2&arg3=$4
RewriteEngine On
RewriteCond $1 \.(gif¦jpg¦css)$ [OR]
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule (.*) - [S=3]
RewriteRule ^(.*)\/(.*)\/$ ?arg1=$1&arg2=$2 [L]
RewriteRule ^(.*)\/(.*)\/(.*)\/$ ?arg1=$1&arg2=$2&arg3=$3 [L]
RewriteRule ^(.*)\/(.*)\/(.*)\/(.*)\/(.*)\/$ ?arg1=$1&arg2=$2&arg3=$3&arg4=$4 [L]
RewriteEngine On
RewriteCond %{HTTP_HOST} !^(www\.)?example.se [NC]
RewriteRule ^ - [S=3]
RewriteRule ^([^/]+)/([^/]+)/$ ?arg1=$1&arg2=$2 [L]
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/$ ?arg1=$1&arg2=$2&arg3=$3 [L]
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/([^/]+)/$ ?arg1=$1&arg3=$3&arg4=$4 [L]
RewriteEngine On
RewriteCond %{HTTP_HOST} !^(site\.)?example.se [NC]
RewriteRule ^ - [S=3]
RewriteRule ^([^/]+)/([^/]+)/$ ?arg1=$1&arg2=$2 [L]
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/$ ?arg1=$1&arg2=$2&arg3=$3 [L]
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/([^/]+)/$ ?arg1=$1&arg2=$2&arg3=$3&arg4=$4 [L]
It didn't work without the [S=n].
Edit; I can se a small problem after all. Time to time it appears to be an error. 404 error page. But after refreshing och waiting for about 15 minutes it works fine again. The problem only appears on subdomains. Any ideas of what that can be?
Do you mean that other subdomains are passing through the same htaccess as yours? You're not in a separate directory? Ouch!
Sorry-- you did say your tld was .se didn't you? :)
Every subdomain have their own htaccess.
...
All subdomains are put in the same folder.
/home
/subdomain1
/subdomain2
/subdomain3
Physical directories:
/home
/subdomain1
/subdomain2
/subdomain3
et cetera, mapping to
User URL:
www.example.com/ (or example.com, one or the other)
subdomain1.example.com/
subdomain2.example.com/
subdomain3.example.com/
et cetera.