This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
Common Questions (Forum Locked Forum Locked)
 Helicon Tech : Common Questions
Subject Topic: Regarding:Rewriting and Redirection
Author
Message |
eagle
Newbie


Joined: 25 July 2009
Posts: 6
Posted: 08 September 2010 at 11:53am

Hi Sir,

       In My Site Url rewriting original scenario is given below:

http://www.xyz.com/ProductListing.aspx?id=8ed5c7da-6a9e-4ba7-8be2-ea4f18c666d3

we rewrite this to:

http://www.xyz.com/bracelets/tennis-bracelets

I have do this in web.config

Now i want if any user

http://www.xyz.com/tennis-bracelets

open this

it 301 redirect to

http://www.xyz.com/bracelets/tennis-bracelets

I have  IIS7 and windows 2008 server and ISAPI_Rewrite (Version 3.1.0.64)

Please help me that both rewiting is work

Thanks & Regards

Back to Top
 
Guests
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -160
Posted: 09 September 2010 at 4:47am

Hello,

As I understood you have done the following redirects:
/ProductListing.aspx?id=8ed5c7da-6a9e-4ba7-8be2-ea4f18c666d3 --> /bracelets/tennis-bracelets
And what you need now is
/tennis-bracelets --> /bracelets/tennis-bracelets
Probably you want this rule to be universal, right?
Is this going to be this way?
/tennis-something ----> something/tennis-something

Or the scenario is different?

Regards
Andrew
Back to Top
 
eagle
Newbie


Joined: 25 July 2009
Posts: 6
Posted: 09 September 2010 at 11:39am

Hi,

   I rewrite "/ProductListing.aspx?id=8ed5c7da-6a9e-4ba7-8be2-ea4f18c666d3" to  /bracelets/tennis-bracelets and it works.Now i want if any user directly open /tennis-bracelets  then it redirect to

/bracelets/tennis-bracelets.

Thanks

Back to Top
 
Guests
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -160
Posted: 10 September 2010 at 4:19am

Please, try the following:

RewriteEngine on
RewriteBase /
RewriteRule ^tennis-bracelets$ bracelets/tennis-bracelets [NC,R=301,L]


Regards
Andrew
Back to Top
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum