Jump to content

  • Log in with Facebook Log in with Twitter Log In with Google      Sign In   
  • Create Account

Subscribe to HRA Now!

 



Are you a Google Analytics enthusiast?

Share and download Custom Google Analytics Reports, dashboards and advanced segments--for FREE! 

 



 

 www.CustomReportSharing.com 

From the folks who brought you High Rankings!



Photo
- - - - -

Rewriting - New Url Formats


  • Please log in to reply
6 replies to this topic

#1 chilluk

chilluk

    HR 2

  • Members
  • PipPip
  • 15 posts
  • Location:UK

Posted 15 November 2012 - 05:51 AM

As part of an overall tidy up we are looking to implement rewriting using IIS URL Rewite Module 2 running on IIS7.

Our current urls are like:

/Product.aspx?PID=123456
/SubCategory.aspx?CID=1&SCID=99

We want to move them to :

/Product/Product-Name/123456
/SubCategory/Subcat-Name/99

The rewriting part is working well (on my test rig) but I then got to reading about rules for trailing slashes and also enforcing lower case.

If I have these urls would they all be seen as different?

/Product/Product-Name/123456
/Product/Product-Name/123456/
/product/product-name/123456

Should I be adding rules to ensure trailing slashes for this style of url, and forcing everything to lower or is that going overboard?

Obviously if we are moving to a new structure we want to do it once and do it right first time.

I am setting canonical tag in each page, and also going to put a 301 in if the incoming URL doesn't match what I expect. Oh and 301s from old style URLs to new. Also in the rewrite module I can set a canonical rule for overall urls to always include the www or not.

Does that sound like a plan or a recipe for instant traffic massacre?!

Thanks as always!

#2 chrishirst

chrishirst

    A not so moderate moderator.

  • Moderator
  • 7,015 posts
  • Location:Blackpool UK

Posted 15 November 2012 - 02:24 PM

If I have these urls would they all be seen as different?

It's a Windows server so they will all resolve to the same content,

The trailing slash doesn't make a lot of difference, the server will try to do an internal redirect if it isn't there.

#3 chilluk

chilluk

    HR 2

  • Members
  • PipPip
  • 15 posts
  • Location:UK

Posted 16 November 2012 - 07:58 AM

Yeah I know that's the worry though isn't it? Same content reached by numerous URLs?

#4 chrishirst

chrishirst

    A not so moderate moderator.

  • Moderator
  • 7,015 posts
  • Location:Blackpool UK

Posted 17 November 2012 - 04:42 PM

If ASP is enabled you could use this code

http://www.modtalk.c...hirst/uri-case/

#5 chilluk

chilluk

    HR 2

  • Members
  • PipPip
  • 15 posts
  • Location:UK

Posted 19 November 2012 - 06:32 AM

Thanks for that. I think the URL rewrite module allows for forcing certain case, and also the trailing slash to be enforced, but I was checking if any / all of it is necessary, and if so what the best policy is?

#6 chrishirst

chrishirst

    A not so moderate moderator.

  • Moderator
  • 7,015 posts
  • Location:Blackpool UK

Posted 20 November 2012 - 05:43 AM

None of it is really necessary as SEs will figure it out for themselves in time. You are simply helping them on the way there.

Having the trailing slash there does reduce server load by a minuscule amount on each request without one. But it's not a big deal either way.

Edited by chrishirst, 20 November 2012 - 05:43 AM.


#7 chilluk

chilluk

    HR 2

  • Members
  • PipPip
  • 15 posts
  • Location:UK

Posted 20 November 2012 - 12:42 PM

Thanks I think I'll go with them then and just keep all internal links nice and consistent.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

SPAM FREE FORUM!
 
If you are just registering to spam,
don't bother. You will be wasting your
time as your spam will never see the
light of day!