Skip to main content Help Control Panel

Login   A+   A-

Community «   Discussion forum «   Post your requirements here «  

Further enhancements to Nice titles

avatarRhodes, Nick -- on Dec. 12 2007, from West Yorkshire, UK
YACS team (UK)
As we know someone nasty could change the incoming link to something like "article-1333-sex-viagra-bill-gates" and it would still work.

If there would not be too much overhead, what I suggest we do, is query the database for the correct nice title and compare, if it is different, 304 redirect to the correct link, eg "article-1333-correct-title).

Not only should we do this for correctness, but it will help google index sites and therefore SEO, as it dislikes multiple URLs to the same page and will reduce the score that page can get.
Agnès
avatar
from le Grésivaudan (grenoble-chambéry)
Associate, 2007 posts

on Dec. 13 2007


I quite agree with this idea


Agnès
Il n'y a pas de problèmes, que des solutions.
Bernard
avatar
from nearby-an-airport
Associate, 6581 posts

on Jan. 28


Sorry sir, but this is processed by Apache, and YACS does not receive this information. This is a limitation from the rewriting mechanism I believe. Or have I missed something?
NickR
avatar
from West Yorkshire, UK
327 posts

on Jan. 28


In php can we not find out the URL of the page request ?

If we can, then we can look at the nice-title part of the url and then compare to the nice title stored in the database and if it is different, we can redirect in php to the url with the correct nice title (http://uk.php.net/header)

I hope this is clearer.


Nick

My Website: NGR78

Rate this page
Posted by NickR on Dec. 12 2007, commented by NickR on Jan. 28, (popular)