And the above code for the property view page works perfectly. I thought I was using the same principles as the above rule to get the category and location from the search url but it’s just not working!
I also think there may be an issue with the ‘+’ symbol in the location string if I do get this working?
[font="arial, verdana, tahoma, sans-serif"][size="2"]<category:\d+> and <location:\d+> expects category and location to be decimal numbers. <category:\w+> and <location:\w+> should be used instead.[/size][/font]
However it’s not allowing me to put the + symbol in the url, and if there’s a space in the town name or category name, the url will contain the + symbol, eg:
/rent/houses-in-stoke+on+trent
And this throws a 404 not found error. Does anyone know best way around this?
Thanks a lot for that, it’s absolutely perfect! I’ve never really got on with regexp, I think I need to take some time out to learn it a little better!