url rewriting in .htaccess to create SEO subdomains and subfolders
GHengeveld |
|
---|---|
donP, you should do your research better. The second line of my code makes the RewriteCond work for the next 7 lines (actually it will skip 7 lines when false, hence the S=7):
RewriteRule . - [S=7]Note that I haven't tested it, so you might be right in saying it doesn't work. I'm just trying to push you in the right direction. Update: I checked the Apache documentation on this, and I think the RewriteCond needs to change. Try this one: RewriteCond %{HTTP_HOST} ^www\.example\.com [NC]This is more likely to work since the second line skips 7 lines when the Cond is true (not false). My first suggestion would actually make it skip all rules when a category subdomain was set (while they should be skipped when it is NOT a category subdomain, so www). |
|
Dit bericht is bewerkt door Koradhil (2010-03-21 01:34, 15 jaren ago) |