Loading

Author Topic: Remove identifier of custom pages from URL  (Read 247 times)

morvy

  • Jr. Member
  • **
  • Posts: 92
  • always dissatisfied
Remove identifier of custom pages from URL
« on: February 08, 2012, 07:51:27 pm »
Is it possible to remove page identifier from link? I think it doesn't look nice with it and I don't think google likes it.

/custom-page-p22 >>> /custom-page

_CONEJO

  • Administrator
  • Hero Member
  • *****
  • Posts: 1922
Re: Remove identifier of custom pages from URL
« Reply #1 on: February 09, 2012, 11:27:35 am »
Hi morvy,

It's possible, but it will be a pain in the ass to do so.
You need to modify the way the link is created (hDefines.php)
And also the .htacess rules to catch them


The problem is that
yoursite.com/text_here is now asociated to categories
and
yoursite.com/text_here-pX with pages, if you remove "-pX", then, there's no way to tell the difference between an url for categories or for a page.


In the future (not too soon, not too far), users will be able to create their own links via an admin option


Thanks for the suggestion

morvy

  • Jr. Member
  • **
  • Posts: 92
  • always dissatisfied
Re: Remove identifier of custom pages from URL
« Reply #2 on: February 09, 2012, 02:14:34 pm »
how about simply adding .html instead pX so router could know that this is page, not category ?