Current Dynamic URL: h**p://www.whatever.com/some-category/display.htm?name=this%20is%20string New Static URL: h**p://www.whatever.com/some-category/this-is-string.htm Any solutions?
have you tried this tool - http://www.webmaster-toolkit.com/mod_rewrite-rewriterule-generator.shtml if you have a script generating them pages you might need to edit that aswell to corrospond with the rewritten pages.
ya nice tool.... I am experimenting with that tool. Can somebody tell how to replace all the spaces in my URL with (-) without the parenthesis? Thanks
I can't think of any way of doing it that would be elegant and not convoluted, through .htaccess. Basically you want a function similar to php's ereg_replace(), but through a mod-rewrite regular expression. But spaces aren't supposed to be part of urls anyway. Look into changing the urls themselves, using something like ereg-replace() if you use php. Add dashes to make the urls, and remove them when you want to use the variables as page titles and so on. Basically you would have a few lines of code that will allow you to swap between the variables: $dash_variable = ereg_replace(" ","-",$somevariable); It's probably better to use an underscore rather than a dash, however. You're more likely to want to use a dash within a title phrase, such as when it's part of someone's name.