Page 1 of 1

Remove the space from SEO Pages

Posted: Wed Feb 17, 2010 1:48 pm
by dellquality
Hi

I want to remove the space from the SEO option and replace with underscore or dash?

What changes in the .htaccess do I need to make?

Options +FollowSymlinks

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)\?*$ index.php?_route_=$1 [L,QSA]

Example:

The category links are now created like: http://dellquality.com/Dell%20Laptops or
http://dellquality.com/Dell Laptops

I want http://dellquality.com/Dell_Laptops or
http://dellquality.com/Dell-Laptops

So i can create a xml sitemap to submit to yahoo and google.

Thanks
Dave
Please do not try and buy anything from the site. The site is NOT up and running - in the test stages - NO real items for sale.

Re: Remove the space from SEO Pages

Posted: Wed Feb 17, 2010 5:57 pm
by richard211986
put them in yourself back end?

sitemap is already done in the admin system under product feeds copy the code into google webmaster tools insert new sitemap

Re: Remove the space from SEO Pages

Posted: Mon Feb 22, 2010 6:18 am
by dellquality
I know there is a site map and the URLs for the categories have spaces. If I copy them it will not work for a .XML site map for google.

Google will not index URLs with spaces in them.

I would like it so that when I add a with a space the URL would have underscores _ . Can this be done from the .htaccess file?

Even if I name the category from the admin area with a underscore it will create pages with the spaces.

Example: I named one category Dell_Laptops and the program created a page URL http://dellquality.com/Dell Laptops still.

Thanks
Dave

Re: Remove the space from SEO Pages

Posted: Mon Feb 22, 2010 10:17 am
by dellquality
I even tried deleting all the categories and using underscore in them and the program still creates a space - replacing the under score? O0

Re: Remove the space from SEO Pages

Posted: Mon Feb 22, 2010 10:54 am
by rph
Go into phpMyAdmin if you have it and manually delete any entries under url_alias.

Re: Remove the space from SEO Pages

Posted: Fri Oct 23, 2015 12:53 am
by rmandiga
Export URL_alias table from myphpadmin and then remove spaces (find & replace) and import data back after truncating the table. This took me 5 mts to do...

Good luck