Forum Moderators: phranque
On my webserver I have created a rewrite rule, that hides the nasty long address.
The .htaccess:
Options +FollowSymlinks
RewriteEngine On
RewriteRule ^/?([^/]*\.html?¦[^\./]*)[:;,\.]*$ /cgi-bin/r30msvcshop_anzeige.pl?&var_selektionsfelder_loeschen=var_te&var_hauptpfad=../r30/vc_shop/&var_fa1_select=var_fa1_select¦¦126¦&var_te13_select=var_te13_select¦¦1¦&var_sprache_select=var_sprache_select¦englisch¦lng/EN/¦&var_html_folgemaske=$1 [L]
This changes helps me hide the &var stuff and leaves me with nice .html s.
Online all this workes fine.
Unfortunately on my local apache I dont get it to run.
I added
Options +FollowSymlinks to the .htaccess
and adapted the httpd.conf.
if I try to open it i get the following error log
"Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden:"
PLease see here my httpd.conf:
----<Directory />
Options FollowSymLinks
Order deny,allow
Deny from all
</Directory>
<Directory "/anwendungen">
Options +Includes -Indexes
AllowOverride All
Order allow,deny
Allow from all
<Files ~ "^\.ht">
Deny from all
Options +FollowSymlinks
</Files>
</Directory>
----
By playing around I also received a error 500
:.htaccess: Options not allowed here
But nothing seems to work.
Where did I do wrong.
I am very grateful for any kind of help
(running ApacheFriends XAMPP (basic package) version 1.6.2 ######
+ Apache 2.2.4
+ MySQL 5.0.41
That clearly indicates that Apache did not recognize the "Options +FollowSymLinks" directive in your .htaccess file.
After you set "AllowOverride All" in httpd.conf, did you restart your server? If not, the changes to httpd.conf will have no effect.
Jim