Which URL is more SEO?mydomain.com/category-name/article-name.htmlORmydomain.com/category name/article name.htmlI have read some articles about URL Rewriting but there I can't find any conclusion.
URL Rewrite with spaces or with -?
seo;url;url rewriting;canonical url;negative seo
Replace spaces with hyphens in URL's without a doubt.They are more readable otherwise URL's will be encoded in the browser like:-example.com/category%20name/article%20name.htmlIt's more friendly for search engines and humans like:-example.com/category-name/article-name.htmlYou can accomplish replacing spaces with hyphens by using the php function str_replace like so:-str_replace(' ', '-', $string);It would be best practice to implement this in the files that generate the URL's with the above php function rather than to hash a series or RewriteCond's and RewriteRule's in .htaccess to replace spaces with hyphens just to be clear.