Quantcast
Channel: Adobe Community: Message List - ColdFusion
Viewing all articles
Browse latest Browse all 21760

I am having Issues with ISAPI_Rewite and Coldfusion

$
0
0

Hi i have a website and a hosting package with HOSTEK.com which also gives me the option to use the ISAPI_rewrite. I am new to this and the issue i am having is that i have a .htaccess file with the rewrite rules which the Helicon Support helped me out with, i dont know how to set the base path as when one part of the rules changes this url:

 

mydomain/products-search.cfm?filter=brand&brand_id=104&brand_name=H&R

 

To this:

 

mydomain/search/104/H&R.cfm

 

The images/css/js dont show up, unfortunately Helicon cant help me out anymore as i will need to pay USD150 for support, i also need help with a few other rules, like i said this is my first time using the URL rewite.

 

Below is my .htaccess file with the rules:

 

RewriteEngine on

 

RewriteRule on

RewriteBase /

 

RewriteCond %{QUERY_STRING} ^filter=brand&brand_id=([^&]+)&brand_name=([^&]+)$ [NC]

RewriteRule ^products-search\.cfm$ /search/%1/%2.cfm? [NC,R=301,L]

 

RewriteCond %{QUERY_STRING} ^$ [NC]

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^search/([^/]+)/([^._]+)\.cfm$ /products-search.cfm?filter=brand&brand_id=$1&brand_name=$2 [NC,L]

 

RewriteCond %{QUERY_STRING} ^product_id=([^&]+)&product_title=([^&]+)$

RewriteRule ^product-details\.cfm$ /%1/%2.cfm? [NC,R=301,L]

 

RewriteCond %{QUERY_STRING} ^$ [NC]

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^([^/]+)/([^._]+)\.cfm$ /product-details.cfm?product_id=$1&product_title=$2 [NC,L]

 

 

Any help would be greatly appreciated.


Viewing all articles
Browse latest Browse all 21760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>