[SOLVED] How do you not show parent page's slug in child page's URL? - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16) +--- Thread: [SOLVED] How do you not show parent page's slug in child page's URL? (/showthread.php?tid=4666) |
[SOLVED] How do you not show parent page's slug in child page's URL? - rjenkins1984 - 2013-04-23 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? RE: How do you not show parent page's slug in child page's URL? - shawn_a - 2013-04-23 http://get-simple.info/wiki/how_to:website_settings#fancy_pretty_seo_urls %slug% RE: How do you not show parent page's slug in child page's URL? - Carlos - 2013-04-23 If you want a slash at the end of the url it would be: %slug%/ But... IIS with mod_rewrite? RE: How do you not show parent page's slug in child page's URL? - rjenkins1984 - 2013-04-23 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/fancy-urls-in-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! |