Page 1 of 4

how to SEO the index.php?route=common/home

Posted: Thu Apr 08, 2010 10:03 pm
by eatblueorange
im new to editing the .htaccess...anyone there know how apply these in the htacess file so that it could read as
http://www.yourshop.com/index.html and not with index.php?route=common/home?

and also is it possible to automatically SEO the product pages in the .htacess because the store owner sometimes dont bother to fill up the SEO url field when adding a product,

I want a url like this http://www.yourstore.com/index.php?rout ... duct_id=56
to automatically be http://www.yourstore.com/product-electronics-56
using the using code techniques in .htaccess? any brillant .htaccess guru there?

Re: how to SEO the index.php?route=common/home

Posted: Wed Jul 07, 2010 11:30 am
by Melanie
Any news on this, would love to get rid of the "index.php?route=common/home" on the main page!

Re: how to SEO the index.php?route=common/home

Posted: Wed Jul 21, 2010 10:24 am
by Johnathan
Take a look at my tutorial in this topic.

Re: how to SEO the index.php?route=common/home

Posted: Thu Sep 02, 2010 3:10 pm
by ifyouseek
If you're using multi-store you need to use the code below. Im not sure if i have changed it correctly, i just changed the url for a forward slash but maybe it could be removed completely. It is working fine on both my shops on different urls. Thanks

Code: Select all

RewriteCond %{QUERY_STRING} ^route=common/home$
RewriteRule ^index\.php$ /? [R=301,L]

Re: how to SEO the index.php?route=common/home

Posted: Fri Sep 03, 2010 3:30 am
by vojtech25
Hey guys,

I have problem with SEO too. But it does not work in general. When I disable using SEO, every products and categories are appearing normally, WITHOUT problems.. But when I enable SEO in admin, it does not work.. when i click on the product that i clicked before, it writes PAGE NOT FOUND..

I think there could be a problem with a .htaccess? I have there

Code: Select all

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

Re: how to SEO the index.php?route=common/home

Posted: Fri Sep 03, 2010 3:32 am
by Xsecrets
vojtech25 wrote:Hey guys,

I have problem with SEO too. But it does not work in general. When I disable using SEO, every products and categories are appearing normally, WITHOUT problems.. But when I enable SEO in admin, it does not work.. when i click on the product that i clicked before, it writes PAGE NOT FOUND..

I think there could be a problem with a .htaccess? I have there

Code: Select all

RewriteEngine On
RewriteBase / 
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)\?*$ index.php?_route_=$1 [L,QSA]
is it right or not? Thanks
if your store is in a folder like shop or store you will need to edit the line RewriteBase / to be RewriteBase /shop/

Re: how to SEO the index.php?route=common/home

Posted: Fri Sep 03, 2010 3:41 am
by vojtech25
No it is not, it is in the home folder... I totally dont know whats wrong.

Re: how to SEO the index.php?route=common/home

Posted: Fri Sep 03, 2010 4:17 am
by vojtech25
I am also watching the error.txt log, and there is very strange warning:
2010-09-02 22:01:34 - PHP Notice: Undefined index: query in /home/mysite.com/catalog/model/tool/seo_url.php on line 11
What the hell is that? :D

Re: how to SEO the index.php?route=common/home

Posted: Fri Sep 03, 2010 4:19 am
by Xsecrets
is your host using apache web server?

Re: how to SEO the index.php?route=common/home

Posted: Fri Sep 03, 2010 4:23 am
by vojtech25
100% yes. Because I am using this host for other domain for testing opencart, and it is working clear.. and the .htaccess is looking the same ... I am probably crazy :D I realle have no clue.

Re: how to SEO the index.php?route=common/home

Posted: Fri Sep 03, 2010 3:28 pm
by vojtech25
.htaccess is right, apache and mod_rewrite is right.. Where could be a problem??

Re: how to SEO the index.php?route=common/home

Posted: Fri Sep 03, 2010 4:02 pm
by vojtech25
Solved guys, sorry for stupid question. I had disabled using ".htacces" :D

Re: how to SEO the index.php?route=common/home

Posted: Sun Sep 05, 2010 1:10 am
by yest
i suddenly get this:

Fatal error: Call to a member function rewrite() on a non-object in /home/wpstore/public_html/catalog/controller/common/header.php on line 25

what it means ?

Re: how to SEO the index.php?route=common/home

Posted: Sun Sep 05, 2010 2:59 pm
by Purebeads
I'm just curious. Do you guys want to change "index.php?route=common/home" to "index.html" simply for aesthetic reasons? My cart is in the subdirectory "catalogue", so I just tell my customers to go to http://www.purebeads.com/catalogue/ -- there is no need for them to type index.html.

Re: how to SEO the index.php?route=common/home

Posted: Sun Sep 05, 2010 5:55 pm
by yest
i think its better for seo no ?

by the way this is the reasen for the eror ?

Re: how to SEO the index.php?route=common/home

Posted: Mon Oct 25, 2010 3:57 am
by QenTox
I added the required line in .htacces file and it works as it should. I just wonder, how come it says at the left bottom corner of the browser window, that is going to send me to "www.mysite.com/index.php?route=common/home" but it will actually send me to the "www.mysite.com". I know it is no issue, but still I am thinking about it :-)

Re: how to SEO the index.php?route=common/home

Posted: Mon Oct 25, 2010 4:12 am
by Johnathan
.htaccess doesn't change the actual links, it just redirects as the link is being resolved.

Re: how to SEO the index.php?route=common/home

Posted: Mon Nov 08, 2010 12:43 am
by Joxe
Hi,

Did not work for me.
My store has 2 languages and it's 1.4.7 :-\

Re: how to SEO the index.php?route=common/home

Posted: Mon Nov 08, 2010 1:06 pm
by alex.lin
insert a keyword for common/home
like "INSERT INTO `url_alias` SET query = 'common/home',keyword = ''home"

it would be easier. :)

Re: how to SEO the index.php?route=common/home

Posted: Mon Nov 08, 2010 1:29 pm
by ocs
Johnathan wrote: Are you using GET on the homepage? What for?
No, I am not. I just want to know more...

then anyone know how to seo index.php?route= to /
but index.php?route=common/home also seo.

Many Thanks Johnathan