Forum Moderators: phranque

Message Too Old, No Replies

Need help in URL rewrite

         

veenu_bha

6:17 am on Oct 14, 2009 (gmt 0)

10+ Year Member



# Helicon ISAPI_Rewrite configuration file
# Version 3.1.0.64

# Helicon ISAPI_Rewrite configuration file
# Version 3.1.0.61

RewriteEngine On
RewriteCompatibility2 On
RepeatLimit 200
RewriteBase
RewriteLogLevel 9

# unsupported directive: [ISAPI_Rewrite]

RewriteRule ^/group(?:/([^/?]+)(?:/([^/?]+))?)?(?:/)?(?:\?(.+))?$ /modules/shop/noframes_categories.asp?a=b(?1\&group=$1:)(?2\&$2:) [NC,L]
RewriteRule ^/browse(?:/([^/?]+)?)?(?:/)?(?:/)(?:\?(.+))?$ /modules/shop/products.asp?a=b(?1\&rangeid=$1:)(?2\&$2:) [NC,L]
RewriteRule ^/product(?:/([^\.]+)?)?.html?(?:\?(.+))?$ /modules/shop/view.asp(?1\?prodcode=$1(?2\&$2:) [NC,L]
RewriteRule ^/ranges(?:/([^/?]+)?)?(?:/)?(?:/)(?:\?(.+))?$ /modules/shop/noframes_ranges.asp?a=b(?1\&catid=$1:)(?2\&$2:) [NC,L]
RewriteRule ^/browse2(?:/([^/?]+)(?:/([^/?]+))?)?(?:/)?(?:\?(.+))?$ /modules/shop/products.asp?a=b(?1\&catid=$1(?2&rangeid=$2:):)(?3\&$3:) [NC,L]

this file is rewriting the url on xyz.com ..but when i write a new rule suppose

Rewriterule ^/browse/xyz/xyz http://www.example.com/xyz/xyz

its not working could u please help me as i'm trying to transfer the rewrited url to new site.So please help me ....what changes i have to make in my existing htacces file so that i can redirect the rewrited url to new site
Thanks
Vineet

[edited by: jdMorgan at 2:01 pm (utc) on Oct. 14, 2009]
[edit reason] Disabled smilies in code. [/edit]

veenu_bha

6:18 am on Oct 14, 2009 (gmt 0)

10+ Year Member



And i'm Using the IIS6.0 and helicon ISAPI rewrite 3.0

jdMorgan

2:04 pm on Oct 14, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You need to put your new external-redirect rule ahead of these other internal-rewrite rules.

I'm not sure about ISAPI Rewrite, but in Apache mod_rewrite, you would want to use an [R=301,L] flag on your new rule.

Jim