So I have the following rule: RewriteRule ^abc/$ ../domain.com/abc/def/?hl=de [L,QSA] Code (markup): It works on my local Apache 1.3, but doesn't work on my dedicated Apache 2.2.2. It's giving me the following error message: Does anybody know why? The paths are exactly the same on the both servers.
Options +Indexes Options +FollowSymlinks RewriteEngine on RewriteBase / RewriteRule ^abc/$ abc/def/?hl=de [L,QSA]
Hi Nintendo, thanks for you help. I already have the Options you mentioned in my httpd.conf. The problem is that I don't want to use abc/def/?hl=de, but I want to get out of the document root and then get into another folder: ../domain.com/abc/def/?hl=de Is this not allowed in Apache 2 anymore or is it a configuration issue, like an option in httpd.conf (I went through it yesterday but couldn't find anything)? I even tried to do the following: RewriteRule ^abc/$ http://www.domain.com/abc/def/?hl=de [L,QSA] But it keeps redirecting http://sub.domain.com/abc/ to http://www.domain.com/abc/def/?hl=de.
OK, but I don't want to have a redirect. Look: I have some files in /home/www/domain.com/abc/def/ that I want to use in the RewriteRules of the .htaccess in /home/www/sub.domain.com/ Is this possible?
/home/www/domain.com/ isn't even supposed to be in .htaccess. Options +Indexes Options +FollowSymlinks RewriteEngine on RewriteBase / RewriteRule ^abc/$ abc/def/ [L] makes domain.com/abc/ show the same thing as domain.com/abc/def/ Is this for just one URL? ([^.]+) and $1 is there's more than one directory.
But I need sub.domain.com to show domain.com/abc/def/?hl=de. I want to make several subdomains, like sub2.domain.com, sub3.domain.com etc. to show domain.com/abc/def/?hl=en, domain.com/abc/def/?hl=pl etc.