Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Child pages, slugs and URLs
#6
Roba: you could try with grabbing whole url, explode it into array, and leave only domain + last 2 array elements.
Simplified solution: more than 3 (don't remember how http://www.domain.tld/ is being split) elements -> redirect to 404.
A bit advanced is to redirect the user after merging array elements, looking if the target page physically exist, and then serve the page.

I've been doing something similar, to see if the page stays in a fixed location (domain/location/page.ext instead of /location/location2/location3/page.ext) and serve a dedicated content. The problem is that it would have to be scallable if you'd like to share your code. Let's not forget about plugins and their content, as array will contain also php variables.

Seems not that good idea as I firstly thought.
Addons: blue business theme, Online Visitors, Notepad
Reply


Messages In This Thread
Child pages, slugs and URLs - by RobA - 2011-06-17, 00:37:05
Child pages, slugs and URLs - by mvlcek - 2011-06-17, 00:50:20
Child pages, slugs and URLs - by Carlos - 2011-06-17, 01:06:19
Child pages, slugs and URLs - by RobA - 2011-06-17, 04:06:34
Child pages, slugs and URLs - by Carlos - 2011-06-17, 05:34:26
Child pages, slugs and URLs - by yojoe - 2011-06-17, 08:12:12
Child pages, slugs and URLs - by Carlos - 2011-06-27, 05:54:33



Users browsing this thread: 1 Guest(s)