Gossamer Forum
Quote Reply
mod_rewrite Help
Hello,

I'm trying to do a mod rewrite to make my dynamic links site look static, tried Andy's mod_rewrite:
http://www.gossamer-threads.com/...orum.cgi?post=275717
http://www.gossamer-threads.com/...orum.cgi?post=293057

1) Empty directory was created in public tree. 'dir'
2) Following rules in my server's httpd.conf:

RewriteEngine On
RewriteRule ^/?$ /dir/
RewriteRule ^/dir/?$ /dir/

<Directory /home/mebar/domains/my_domain_name.com/public_html/dir>
Options All -Indexes -FollowSymLinks +SymLinksIfOwnerMatch
RewriteEngine On
RewriteRule (.*) /cgi-bin/links/page.cgi?g=$1 [L]
AllowOverride All
Allow From All
</Directory>


All it did is drop me into static pages (old content), and change this URL:

http://www.my_domain_name.com/...n/links/page.cgi?d=1
To:
http://www.my_domain_name.com/dir

What am I doing wrong? can anyone help?

Thank you!