Forum Moderators: phranque

Message Too Old, No Replies

long trail of garbage

         

texanweb

6:19 pm on May 16, 2006 (gmt 0)

10+ Year Member



I want this:
http://www.example.net/chart/index.php?act=viewCat&catId=1&ccSID-6b1cec3fa38cff10fdd303d712550dca=f2abbad82fd2476d28f1303d629dc584

to turn into this:
http://www.example.net/test-category/cat_1.html

here is my code:
# <rf> search engine friendly mod

# 1) only used if you selected 'Apache directory lookback and ForceType supported' as your server configuration
<Files shop>
ForceType application/x-httpd-php
</Files>
# end 1)

# 2) only used if you selected 'Apache RewriteRule supported' as your server configuration
RewriteEngine On
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST}!^www\.example\.net [NC]
RewriteRule (.*) http://www.example.net/$1 [R=301,L]

RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*index\.php\ HTTP/
RewriteRule ^(.*)index\.php$ /$1 [R=301,L]

RewriteCond %{QUERY_STRING} (.+)
RewriteRule cat_(.*).html index.php?act=viewCat&catId=$1&%1[L]
RewriteRule cat_(.*).html index.php?act=viewCat&catId=$1 [L]
RewriteCond %{QUERY_STRING} (.+)
RewriteRule prod_(.*).html index.php?act=viewProd&productId=$1&%1 [L]
RewriteRule prod_(.*).html index.php?act=viewProd&productId=$1 [L]
RewriteCond %{QUERY_STRING} (.+)
RewriteRule info_(.*).html index.php?act=viewDoc&docId=$1&%1 [L]
RewriteRule info_(.*).html index.php?act=viewDoc&docId=$1 [L]
RewriteCond %{QUERY_STRING} (.+)
RewriteRule tell_(.*).html index.php?act=taf&productId=$1&%1 [L]
RewriteRule tell_(.*).html index.php?act=taf&productId=$1 [L]
# end 2)

# <rf> end mod

Now, my mod rewrite is working, but I have a long trail of garbage behind cat_1.html. How can I get rid of it?