Msg#: 4588743 posted 11:13 am on Jun 29, 2013 (gmt 0)
I've been on Google and I just can't get this to work.
Here's the sort of thing I'm looking to do:
This is your normal URL: http://example.com/games/loadgame/seo-title/input-2, where "games" is a controller, "loadgame" is the function, "seo-title" is a function input, and "input-2" is the second function input.
However, the URL's that I'm after look like this:
So that "games/loadgame", the controller and function, are not included in the URL. And seo-title becomes the sub-domain.
Is this possible?
Thanks in advance, Mark.
[edited by: phranque at 11:39 am (utc) on Jun 29, 2013] [edit reason] Please Use Example.com [webmasterworld.com] [/edit]
Msg#: 4588743 posted 3:47 am on Jul 14, 2013 (gmt 0)
in the RewriteRule Pattern you can use capturing groups by surrounding the relevant parts of the url path with parentheses and then back-reference those groups in the Substitution string using $N variables.