PDA

View Full Version : mod_rewrite static to anchor type url?


RonHouston
09-15-2006, 07:39 PM
Hi,

In the last two weeks I've been desperately trying to get this .htaccess thing to work, but never succeeded.
I'm trying to have three things done with this.

- first is that it has to redirect all dynamic to anchor type. ie: redirect all index.php?query=string to /#query/string/
- second is to have to redirect all dynamic to static url
- third is to have a file exception on these mod_rewrite rules for a certain file type.

I keep on getting "500 Internal Server Error" when trying to get through the first step.

RewriteEngine On
RewriteBase http://www.domain.com/temp/domain/

RewriteCond %{QUERY_STRING} ^folder\=([^&]+)$
RewriteRule ^$ /#folder/%1/ [R=301,L]

Any help would be greatly appreciated.

Ron.