Post by meteor053 » Tue Apr 28, 2015 6:22 am

Plesa help me i use open cartmy web site http://www.zayiflamabandi.net but i clik logo and add web site link /index.php?route=common/home how is itremowe please help.
Thank you

Alüminyum
Alüminyum külçe


Newbie

Posts

Joined
Tue Apr 28, 2015 6:18 am

Post by fido-x » Tue Apr 28, 2015 12:16 pm

In the header template file (catalog/view/theme/default/template/common/header.tpl) change line 76 from:

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>
to:

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>

Image
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!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by kau_san » Sun Jun 21, 2015 1:04 pm

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:

Code: Select all

RewriteCond %{QUERY_STRING} ^route=common/home$
RewriteCond %{REQUEST_METHOD} !^POST$
RewriteRule ^index\.php$ http://%{HTTP_HOST}? [R=301,L]
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 ::)

Newbie

Posts

Joined
Sat Jun 13, 2015 6:15 pm

Post by hichem.aidi » Tue Nov 24, 2015 2:59 pm

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
....

Newbie

Posts

Joined
Sun Nov 22, 2015 2:00 pm

Post by opencartboost » Wed Nov 25, 2015 1:31 pm

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
....
I have one,
http://www.opencart.com/index.php?route ... on_id=2220

Active Member

Posts

Joined
Thu Jul 09, 2015 5:59 am

Post by meowmeowcastle.com » Wed Nov 25, 2015 6:22 pm

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
....
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 .htaccess

You can see the example at my site: http://www.meowmeowcastle.com/makeup

Image
Asian Beauty in the US


User avatar
New member

Posts

Joined
Wed Nov 18, 2015 3:03 pm
Location - Boston, MA

Post by javedkhanmk20 » Fri Jul 15, 2016 4:24 pm

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 ...

New member

Posts

Joined
Fri Jul 15, 2016 4:13 pm

Post by javedkhanmk20 » Wed Jul 20, 2016 4:28 pm

thanku so much to all..

New member

Posts

Joined
Fri Jul 15, 2016 4:13 pm

Post by javedkhanmk20 » Fri Jul 29, 2016 6:01 pm

thanku very much to all all..problem solve

New member

Posts

Joined
Fri Jul 15, 2016 4:13 pm

Post by Rahul902 » Fri Nov 23, 2018 7:56 pm

kau_san wrote:
Sun Jun 21, 2015 1:04 pm
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:

Code: Select all

RewriteCond %{QUERY_STRING} ^route=common/home$
RewriteCond %{REQUEST_METHOD} !^POST$
RewriteRule ^index\.php$ http://%{HTTP_HOST}? [R=301,L]
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 ::)
I pasted this code u mentioned above but now my homepage cannot be seen can u tell me the reverse of the code
my site name is npmart.ml pls help

Newbie

Posts

Joined
Thu May 31, 2018 2:21 am

Post by OSWorX » Fri Nov 23, 2018 8:38 pm

Rahul902 wrote:
Fri Nov 23, 2018 7:56 pm
I pasted this code u mentioned above but now my homepage cannot be seen can u tell me the reverse of the code ..
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.


User avatar
Guru Member

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria
Who is online

Users browsing this forum: No registered users and 66 guests