Forum Moderators: phranque

Message Too Old, No Replies

Rewrite rule again, but I do not find a solution; please help me

Setting up a working rewrite rule on a local apache; 403 error

         

haircrime

5:31 pm on Jul 20, 2007 (gmt 0)

10+ Year Member



Hi Guys,
for days now I have been looking through forums, faqs help pages and so.
I have the following problem:

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

jdMorgan

4:26 am on Jul 21, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



> "Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden:"

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

haircrime

8:50 am on Jul 21, 2007 (gmt 0)

10+ Year Member



Thank you for your answer,
Yes I restarted the server. I even restarted the whole computer just to make sure.

This is what I understood as well.
It does not recognize my Allowoverride All.
What other causes could it have?

Thank you very much.,

haircrime

11:06 am on Jul 25, 2007 (gmt 0)

10+ Year Member



noone has an idea, what other causes it could have?

Please, I really do not find the sultion