In the header template file (catalog/view/theme/default/template/common/header.tpl) change line 76 from:
to:
Code: Select all
<a href="<?php echo $home; ?>"><img src="<?php echo $logo; ?>" title="<?php echo $name; ?>" alt="<?php echo $name; ?>" class="img-responsive" /></a>
Code: Select all
<a href="<?php echo $base; ?>"><img src="<?php echo $logo; ?>" title="<?php echo $name; ?>" alt="<?php echo $name; ?>" class="img-responsive" /></a>
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool
If you're not living on the edge ... you're taking up too much space!
These are some simple steps to redirect the
home URL ( http://www.yoursite.com/index.php?route=common/home )
to your store's main page ( http://www.yoursite.com ),
I faced the same problem in opencart 2.0.2.0 on my website http://www.mahavirgems.com
then I came to this solution on the Forum,
add the following code to your .htaccess file just below the RewriteBase line:
Please Note that this won't change the actual links in your store, but once clicked on,
they'll redirect to the main page without the "index.php?route=common/home" portion on the url.
Post a reply if you liked it.
Kaushik Sanghvi
home URL ( http://www.yoursite.com/index.php?route=common/home )
to your store's main page ( http://www.yoursite.com ),
I faced the same problem in opencart 2.0.2.0 on my website http://www.mahavirgems.com
then I came to this solution on the Forum,
add the following code to your .htaccess file just below the RewriteBase line:
Code: Select all
RewriteCond %{QUERY_STRING} ^route=common/home$
RewriteCond %{REQUEST_METHOD} !^POST$
RewriteRule ^index\.php$ http://%{HTTP_HOST}? [R=301,L]
they'll redirect to the main page without the "index.php?route=common/home" portion on the url.
Post a reply if you liked it.
Kaushik Sanghvi
Thank you Kaushik Sanghvi,
it works for the home page... do you have any solution for the other URLs... like:
index.php?route=product/manufacturer
index.php?route=information/contact
index.php?route=account/return/add
....
it works for the home page... do you have any solution for the other URLs... like:
index.php?route=product/manufacturer
index.php?route=information/contact
index.php?route=account/return/add
....
I have one,hichem.aidi wrote:Thank you Kaushik Sanghvi,
it works for the home page... do you have any solution for the other URLs... like:
index.php?route=product/manufacturer
index.php?route=information/contact
index.php?route=account/return/add
....
http://www.opencart.com/index.php?route ... on_id=2220
Google opencart seo url. Basically, you set up SEO word, and turn on the option using seo url in setting. Last, delete the .htacess file, and rename the .htaccess.txt to .htaccesshichem.aidi wrote:Thank you Kaushik Sanghvi,
it works for the home page... do you have any solution for the other URLs... like:
index.php?route=product/manufacturer
index.php?route=information/contact
index.php?route=account/return/add
....
You can see the example at my site: http://www.meowmeowcastle.com/makeup
dont want to show website on https://www.site.com/index.php..
when i enter url like https://www.site.com/index.php this,i dont want show my web site ...
when i enter url like https://www.site.com/index.php this,i dont want show my web site ...
I pasted this code u mentioned above but now my homepage cannot be seen can u tell me the reverse of the codekau_san wrote: ↑Sun Jun 21, 2015 1:04 pmThese are some simple steps to redirect the
home URL ( http://www.yoursite.com/index.php?route=common/home )
to your store's main page ( http://www.yoursite.com ),
I faced the same problem in opencart 2.0.2.0 on my website http://www.mahavirgems.com
then I came to this solution on the Forum,
add the following code to your .htaccess file just below the RewriteBase line:
Please Note that this won't change the actual links in your store, but once clicked on,Code: Select all
RewriteCond %{QUERY_STRING} ^route=common/home$ RewriteCond %{REQUEST_METHOD} !^POST$ RewriteRule ^index\.php$ http://%{HTTP_HOST}? [R=301,L]
they'll redirect to the main page without the "index.php?route=common/home" portion on the url.
Post a reply if you liked it.
Kaushik Sanghvi
my site name is npmart.ml pls help
Simply remove the added code/line(s).
Or use the backup you have - have you?
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
Who is online
Users browsing this forum: No registered users and 71 guests