Post by shimon » Wed Feb 27, 2013 4:44 am

I'm not a programmer, but trying my best to work on Opencart by myself.

Can somebody tell me how to use httpd.conf file instead of htaccess file? Is it the same mod rewrite rules as the htaccess file?

Here's my issue:

1) The hyperlink on my logo, isn't just the .com. It's index.php?route=common/home
I'd like to 301 redirect it to the .com (the canonical URL).

2) Same problem on the breadcrumb, on the product pages that link back to the homepage.

3) Same problem on the "Continue" button on the "Information" pages (eg: About Us, Delivery Information, Privacy Policy, etc).

Any help (and code example) would be much appreciated.

Thanks!

Professional SEO Consulting
http://www.shimonsandler.com


New member

Posts

Joined
Sun Oct 16, 2011 12:27 pm


Post by uksitebuilder » Mon Mar 04, 2013 4:58 am

You should put the content of .htaccess file like this:

Code: Select all

<Directory /path/to/your/opencart>
[insert rewrite rules here]
</Directory>
Restart Apache after making changes to httpd.conf

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom
Who is online

Users browsing this forum: Baidu [Spider] and 28 guests