Thanks for your reply Kalon. Yes I did tried urlencode and got %26 in-replace for the ampersand for the thing is when I dump it again, I got the following:
array(1) {
[“pathInfo”]=> “/sales_”
}
It can’t seems to get to the rest of the %26_marketing part :injured:
I don’t have any real experience with htaccess files, but to test if that is your problem, can you rename your htaccess file to something else temporarily and then try the urlencode code again?
Quite literally impossible as the whole site’s url now is coded as /slash/blah/blah/. I would have to change alot of areas just to check on that, lol. But anyway really appreciate your help Kalon
The problem has arisen because you are allowing a text string to be used almost as a variable.
If that title “Sales & Marketing” is coming from a user then you have to be prepared to enforce rigid rules about what is permitted in that title, replacing & with “and” is probably the easiest way round this.
I realise that then “Sales and Marketing” may not fit your menu systems etc, but that is the price you have to pay.
This whole free text as an SEO url or whatever is sometimes referred to as a “slugging” or creating a slug - if you wanted to get some algorithms to help you out on this.