homepage Welcome to WebmasterWorld Guest from 54.243.13.30
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Website
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

This 32 message thread spans 2 pages: < < 32 ( 1 [2]     
A Few Rewrite Questions
Correcting spaces, duplicates. And initiate big SEO change?
Frank_Rizzo




msg:4547398
 11:41 am on Feb 21, 2013 (gmt 0)

I have two duplicate issues in WMT. One is due to spaces the other due to a single apostrophe.

Space, %20, %25%20, +
The site displays info on sportspersons. URLs for each sportsperson page is like this:

/sportsperson.php?sport=hky&name=Joe+Dude

there are duplicates for

/sportsperson.php?sport=hky&name=Joe%20Dude

and

/sportsperson.php?sport=hky&name=Joe%25%20Dude

Which should I be using, and how can I rewrite it?

Single Apostrophe
SQL injection is often targetted on the FAQ section:

/faq/index.php?id=200' and ' union .....

This is blocked but in the generated sitemap this is recorded:

/faq/index.php?id=200'

which will duplicate with the genuine request:

/faq/index.php?id=200

How do I remove the single apostrophe from the end? Note that this only needs to happen in the /faq/ directory.

Total Rewrite
I appreciate that when setting up the site I could have made it more SEO friendly by not using get vars in the string. Would it now be too late to rewrite these:

/sportsperson.php?sport=hky&name=Joe+Dude
/sportsperson.php?sport=fball&name=Harry+Lime

to these:

/sportsperson.php/Joe-Dude-hockey-player-profile
/sportsperson.php/Harry-Lime-football-player-profile

In total there are over 100,000 names. Would implimenting this change be too much for

a) the search engines - would 100,000 301s cause a penalty?
b) the server - what is the impact on performance?

 

g1smd




msg:4549266
 12:33 am on Feb 27, 2013 (gmt 0)

The PHP script needs to return 404 status for all requests that were rewritten to it, but for which it cannot issue a redirect.

Frank_Rizzo




msg:4555636
 12:45 pm on Mar 16, 2013 (gmt 0)

I implemented the changes couple of weeks ago. So far it is going well.

Not hit a penalty (yet ~~ ) Google crawls have trippled, site visits are up.

There is a surge in duplicate title tags but I presume this will clear as the 301s are filtered through.

Bing is having an issue with a small handful of the pages in that it doesn't find the correct sport but that's not worth bothering with.

Thanks to all who helped me with this.

This 32 message thread spans 2 pages: < < 32 ( 1 [2]
Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved