I'm using the function: redirect_page_301 page to redirect lots of old url's in Google.
The old website used a + sign in the url.
If I use the + sign in the url field of CMSMS I get an error because the +sign is not allowed here.
I search where I can change this but didn't found that solution.
Does anyone know how to do this?
[Solved] Need to use the + sign in the url
[Solved] Need to use the + sign in the url
Last edited by Masweb on Tue Nov 18, 2014 10:57 am, edited 1 time in total.
Re: Need to use the + sign in the url
Have you tried using + instead of + ?
Re: Need to use the + sign in the url
Yes I did, but that doesn't work.psy wrote:Have you tried using + instead of + ?
Re: Need to use the + sign in the url
Not familiar with this function. Is it a smarty tag or in some module php code?I'm using the function: redirect_page_301
If it's a tag, you could try something like:
Code: Select all
{$tempurl=str_replace('+', '---',http://www.myoldsite.com/something+else/page.html)}
{redirect_page_301|replace:'---':'+' $tempurl}
Worth a try.

Re: Need to use the + sign in the url
This is a function you can download from the tags on the CMSMS website.
I've used you code but don't no where to put it, so for me it didn't work.
I've made for al the links a single html page on the server and did the job this time with
This is not the sollution on my question but works for me now.
Thanks for your time!
I've used you code but don't no where to put it, so for me it didn't work.
I've made for al the links a single html page on the server and did the job this time with
Code: Select all
<meta http-equiv="refresh" content="0; url=http://www.website.com/tag/link.html
">
Thanks for your time!