Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] How do you not show parent page's slug in child page's URL?
#1
I need to have parent-child relationships between pages but don't want to have parent pages' slugs included in child page's URLs. For example;

Code:
http://domain.com/parent-page/child-page/

becomes:

Code:
http://domain.com/child-page/

I can't find it in general or page-specific settings and I don't know how mod-rewrite could solve this. To make matters worse I'm using IIS!

Does anyone know how I could achieve this?
Reply
#2
http://get-simple.info/wiki/how_to:websi...y_seo_urls

%slug%
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#3
If you want a slash at the end of the url it would be:
%slug%/

But... IIS with mod_rewrite?
Reply
#4
Brilliant, thanks guys - very happy it was something built-in!

The problem is that at work I only have windows servers for hosting so, to make the best of a bad situation, I made http://get-simple.info/extend/plugin/fan...n-iis/496/ which is basically a web.config setup so clean URLs work. The downside (which I didn't realise when making it) is that it can't (currently!) handle subdirs. I've updated the extension description to include this.

Also, in IIS it's referred to as "URL Rewrite" module, however the purpose and functionality is pretty much the same.

Thanks again!
Reply




Users browsing this thread: 2 Guest(s)