Post by gsc1ugs » Fri Apr 17, 2015 9:49 pm

Anyone got a standard .htaccess settings please set for SEO's my old one doesn't work for OC 2.0.2.0

Active Member

Posts

Joined
Mon Sep 09, 2013 3:32 pm

Post by viethemes » Fri Apr 17, 2015 11:29 pm

Did you enable SEO on the store settings in admin?

http://www.viethemes.com - OpenCart turtorials, news, tips and stricks, extension

Our extensions:
Visual Theme Editor - Powerful tool for customizing style of any theme visually
Live Theme Editor - Customize layout, colors, backgrounds, fonts of the default theme
Theme Animation - Animation Editor for any theme

Extra Positions PRO, Custom JavaScript, Custom CSS and others


User avatar
Active Member

Posts

Joined
Thu Jan 08, 2015 12:17 pm


Post by gsc1ugs » Sat Apr 18, 2015 5:56 am

Yes, and when i click a click a seo lik page not found

Active Member

Posts

Joined
Mon Sep 09, 2013 3:32 pm

Post by yodapt » Sat Apr 18, 2015 6:06 am

gsc1ugs wrote:Anyone got a standard .htaccess settings please set for SEO's my old one doesn't work for OC 2.0.2.0
What do you mean it doesn't work?

Opencart Developer - My Extension Showcase
Contact me at aeon.yoda@gmail.com


User avatar
Active Member

Posts

Joined
Fri Jun 17, 2011 6:39 pm


Post by viethemes » Sat Apr 18, 2015 12:28 pm

gsc1ugs wrote:Yes, and when i click a click a seo lik page not found
Could you attach the .htaccess file here?

http://www.viethemes.com - OpenCart turtorials, news, tips and stricks, extension

Our extensions:
Visual Theme Editor - Powerful tool for customizing style of any theme visually
Live Theme Editor - Customize layout, colors, backgrounds, fonts of the default theme
Theme Animation - Animation Editor for any theme

Extra Positions PRO, Custom JavaScript, Custom CSS and others


User avatar
Active Member

Posts

Joined
Thu Jan 08, 2015 12:17 pm


Post by gsc1ugs » Sat Apr 18, 2015 6:55 pm

Please see code...

Code: Select all

# 1.To use URL Alias you need to be running apache with mod_rewrite enabled. 

# 2. In your opencart directory rename htaccess.txt to .htaccess.

# For any support issues please visit: http://www.opencart.com

Options +FollowSymlinks

# Prevent Directoy listing 
Options -Indexes

# Prevent Direct Access to files
<FilesMatch "\.(tpl|ini|log)">
 Order deny,allow
 Deny from all
</FilesMatch>

# SEO URL Settings
RewriteEngine On
# If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/ 

RewriteBase /
RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
RewriteCond %{HTTP_HOST} ^www\.mywebsite\.com [NC]
RewriteRule (.*) http://mywebsite.com/$1 [R=301,L]

### Additional Settings that may need to be enabled for some servers 
### Uncomment the commands by removing the # sign in front of it.
### If you get an "Internal Server Error 500" after enabling any of the following settings, restore the # as this means your host doesn't allow that.

# 1. If your cart only allows you to add one item at a time, it is possible register_globals is on. This may work to disable it:
# php_flag register_globals off

# 2. If your cart has magic quotes enabled, This may work to disable it:
# php_flag magic_quotes_gpc Off

# 3. Set max upload file size. Most hosts will limit this and not allow it to be overridden but you can try
# php_value upload_max_filesize 999M

# 4. set max post size. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
# php_value post_max_size 999M

# 5. set max time script can take. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
# php_value max_execution_time 200

# 6. set max time for input to be recieved. Uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
# php_value max_input_time 200

# 7. disable open_basedir limitations
# php_admin_value open_basedir none

Active Member

Posts

Joined
Mon Sep 09, 2013 3:32 pm

Post by yodapt » Sat Apr 18, 2015 7:21 pm

Is that the .htaccess you are using on your website, as is?

Opencart Developer - My Extension Showcase
Contact me at aeon.yoda@gmail.com


User avatar
Active Member

Posts

Joined
Fri Jun 17, 2011 6:39 pm


Post by gsc1ugs » Sat Apr 18, 2015 7:25 pm

Yes but took it off, was not working, links evrything broke

Active Member

Posts

Joined
Mon Sep 09, 2013 3:32 pm

Post by yodapt » Sat Apr 18, 2015 7:28 pm

Code: Select all

RewriteRule (.*) http://mywebsite.com/$1 [R=301,L]
I'm pretty sure this is not you're website's url, thus the question.

Opencart Developer - My Extension Showcase
Contact me at aeon.yoda@gmail.com


User avatar
Active Member

Posts

Joined
Fri Jun 17, 2011 6:39 pm


Post by gsc1ugs » Sat Apr 18, 2015 7:33 pm

No sorry its not that, htaccess is disabled ive just not put the aite down

Active Member

Posts

Joined
Mon Sep 09, 2013 3:32 pm

Post by yodapt » Sun Apr 19, 2015 4:11 am

So what version have you really tested on your website? We need to see the actual code of the actual file.

Opencart Developer - My Extension Showcase
Contact me at aeon.yoda@gmail.com


User avatar
Active Member

Posts

Joined
Fri Jun 17, 2011 6:39 pm


Post by gsc1ugs » Sun Apr 19, 2015 5:48 pm

Ive turned file off because links dont work, can you see anything in the above file jumping out has wrong?? what is a standard setup running SEO's

Active Member

Posts

Joined
Mon Sep 09, 2013 3:32 pm

Post by yodapt » Sun Apr 19, 2015 6:22 pm

Code: Select all

RewriteCond %{HTTP_HOST} ^www\.mywebsite\.com [NC]
RewriteRule (.*) http://mywebsite.com/$1 [R=301,L]
This is not part of the original .htaccess nor should it be placed where it is now.
Last edited by yodapt on Sun Apr 19, 2015 7:13 pm, edited 1 time in total.

Opencart Developer - My Extension Showcase
Contact me at aeon.yoda@gmail.com


User avatar
Active Member

Posts

Joined
Fri Jun 17, 2011 6:39 pm


Post by gsc1ugs » Sun Apr 19, 2015 6:50 pm

Sorry? Take it out?

Active Member

Posts

Joined
Mon Sep 09, 2013 3:32 pm

Post by gilaraujo » Sun Apr 19, 2015 6:53 pm

what he means is your haccess rule is wrong!

try this instead if you want to convert non www into wwws

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

New member

Posts

Joined
Fri Mar 27, 2015 10:32 pm

Post by gsc1ugs » Sun Apr 19, 2015 7:30 pm

So i dont have to name sitename?

Active Member

Posts

Joined
Mon Sep 09, 2013 3:32 pm

Post by gsc1ugs » Mon Apr 20, 2015 5:11 pm

When I put this in, I got the 500 server error

Code: Select all

# SEO URL Settings
RewriteEngine On
# If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/ 

RewriteBase /www.clearvape.com/
RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www .%{HTTP_HOST}/$1 [R=301,L]

Active Member

Posts

Joined
Mon Sep 09, 2013 3:32 pm

Post by viethemes » Mon Apr 20, 2015 5:14 pm

You don't need to insert your domain in the RewriteBase. You can try to remove it and check your store again

Code: Select all

RewriteBase /

http://www.viethemes.com - OpenCart turtorials, news, tips and stricks, extension

Our extensions:
Visual Theme Editor - Powerful tool for customizing style of any theme visually
Live Theme Editor - Customize layout, colors, backgrounds, fonts of the default theme
Theme Animation - Animation Editor for any theme

Extra Positions PRO, Custom JavaScript, Custom CSS and others


User avatar
Active Member

Posts

Joined
Thu Jan 08, 2015 12:17 pm


Post by gsc1ugs » Mon Apr 20, 2015 5:23 pm

same again


Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at webmaster@mysite.com to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

Active Member

Posts

Joined
Mon Sep 09, 2013 3:32 pm

Post by gsc1ugs » Tue Apr 21, 2015 6:00 pm

My site wont load with this why?

Code: Select all

# 1.To use URL Alias you need to be running apache with mod_rewrite enabled. 

# 2. In your opencart directory rename htaccess.txt to .htaccess.

# For any support issues please visit: http://www.opencart.com

Options +FollowSymlinks

# Prevent Directoy listing 
Options -Indexes

# Prevent Direct Access to files
<FilesMatch "\.(tpl|ini|log)">
 Order deny,allow
 Deny from all
</FilesMatch>

# SEO URL Settings
RewriteEngine On
# If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/ 

RewriteBase /
RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www .%{HTTP_HOST}/$1 [R=301,L]

Active Member

Posts

Joined
Mon Sep 09, 2013 3:32 pm
Who is online

Users browsing this forum: No registered users and 45 guests