This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
Common Questions
 Helicon Tech : Common Questions
Subject Topic: Regarding:Rewriting and Redirection Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
eagle
Newbie
Newbie


Joined: 25 July 2009
Online Status: Offline
Posts: 6
Posted: 08 September 2010 at 11:53am | IP Logged Quote eagle

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 View eagle's Profile Search for other posts by eagle
 
Guests
Guest
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -149
Posted: 09 September 2010 at 4:47am | IP Logged Quote Guests

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 View Guests's Profile Search for other posts by Guests
 
eagle
Newbie
Newbie


Joined: 25 July 2009
Online Status: Offline
Posts: 6
Posted: 09 September 2010 at 11:39am | IP Logged Quote eagle

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 View eagle's Profile Search for other posts by eagle
 
Guests
Guest
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -149
Posted: 10 September 2010 at 4:19am | IP Logged Quote Guests

Please, try the following:

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


Regards
Andrew
Back to Top View Guests's Profile Search for other posts by Guests
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
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