Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not Solved [How To?] SEO friendly urls
#8
Not Solved
This user has been denied support. This user has been denied support.
The Google SEO plugin hooks into inc/functions.php::get_thread_link() and returns a different URL. The old Spicefuse SEO plugin hooks into the output and uses regular expressions to collect all thread links in the output, and replace them with different ones. Either one has to query thread subjects from the database in order to be able to place them in the URL.

http://www.example.com/1-Hi-World.html

Although I recommend sticking to the default URL style of Google SEO, it can emulate this one, to some degree...

Enable force uniquifier, {uniquifier}{separator}{url} and thread URL {url}.html will give you 1-Hi-World.html; if you treat the number as prefix, a rewrite rule like ^([0-9]+)-.*\.html showthread.php?tid=$1 [L,QSA] should work.

Although since the force uniquifier is a global setting, you will also end up with u1-User, f1-Forum, ...

If it's about mimicking URLs from your old board, you're bound to fail, and you should rather think about how to redirect them properly.
Reply


Messages In This Thread
SEO friendly urls - by DanielM - 12-13-2014, 02:07 PM
RE: SEO friendly urls - by Nathan Malcolm - 12-13-2014, 02:09 PM
RE: SEO friendly urls - by DanielM - 12-13-2014, 02:13 PM
RE: SEO friendly urls - by Nathan Malcolm - 12-13-2014, 02:51 PM
RE: SEO friendly urls - by DanielM - 12-14-2014, 12:26 PM
RE: SEO friendly urls - by DanielM - 12-15-2014, 12:56 PM
RE: SEO friendly urls - by DanielM - 12-16-2014, 04:48 PM
RE: SEO friendly urls - by frostschutz - 12-16-2014, 08:56 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)