By default, multiple word tags look like this /tag/new%20car%20videos/
The url would look better using hyphens /tag/new-car-videos/
Is using mod_rewrite/RewriteRule the only way to accomplish this or is there another option?
Replace spaces(%20) for multiple word tags in url
Re: Replace spaces(%20) for multiple word tags in url
You can replace spaces with dashes in templates
Script will recognize it anyway
Script will recognize it anyway
Don't forget to run script update
Re: Replace spaces(%20) for multiple word tags in url
How would this be done in templates?
Re: Replace spaces(%20) for multiple word tags in url
You can use str_replace() php function
Also don't forget about tag_prefixes
Also don't forget about tag_prefixes
Don't forget to run script update
Re: Replace spaces(%20) for multiple word tags in url
What tag_prefixes should be used?
Re: Replace spaces(%20) for multiple word tags in url
Also, can you show an example here, the space(%20) in tags doesn't exist until the <!--TAG1--> is already processed by the server. So how would we use str_replace() to make this work?
Re: Replace spaces(%20) for multiple word tags in url
I mean you can use it right in templates
Don't forget to run script update
Re: Replace spaces(%20) for multiple word tags in url
Can you please show me an example of how this would work using str_replace() php function and tag prefixes? I don't see how this could work as the <!--TAG1--> variable hasn't been processed yet by the server to show the actual tag, again the url example I'm using is domain.com/tag/new%20car%videos/
Re: Replace spaces(%20) for multiple word tags in url
<!--TAG1--> becomes <? echo str_replace(' ', '-', '<!--ESCAPED_TAG1-->') ?>
Don't forget to run script update
Re: Replace spaces(%20) for multiple word tags in url
Thank you.
I had tried using that code with '%20' in the single quotes, didn't think to try the ' ' blank space...
I had tried using that code with '%20' in the single quotes, didn't think to try the ' ' blank space...







