Post by bmsupplies » Mon Nov 25, 2013 11:32 pm

I've had SEO Urls on since I started using Opencart about year ago and have never had a problem.

Ever since a problem with hosting they have just stopped working all together. in fact rather than a category you are given a 404 error.

in an attempt to get the site accessible to customers I've had to revert back to the original URLS :(

Ive checked the htaccess and all looks fine. Ive posted my htaccess below

Can anyone offer any help on what has caused this??
DirectoryIndex index.php

# 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 %{QUERY_STRING} ^route=common/home$
RewriteRule ^index\.php$ http://www.bmsupplies.co.uk? [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

ErrorDocument 404 /404.php

New member

Posts

Joined
Tue May 01, 2012 5:51 pm

Post by dmsims » Tue Nov 26, 2013 12:08 am

Have you checked "Use SEO URL's:" is Yes in Admin ?

Active Member

Posts

Joined
Sat Apr 13, 2013 6:05 pm

Post by bmsupplies » Tue Nov 26, 2013 12:32 am

Yes, Ive had to turn the although the seo urls are currently off for the time being as it only displays a 404 when active.

New member

Posts

Joined
Tue May 01, 2012 5:51 pm

Post by cwswebdesign » Tue Nov 26, 2013 2:10 am

You may need to put a # before Options +FollowSymLinks and you shouldn't need the very last line about the 404 error page. Also, is your actual install in the root folder of your server or is it installed in a sub folder?

DL

This account is inactive. Look for us under the name 'EvolveWebHosting' and contact us under that username.

Thanks!


User avatar
Active Member

Posts

Joined
Sun Dec 11, 2011 12:26 am
Location - USA

Post by bmsupplies » Tue Nov 26, 2013 5:13 pm

@cwswebdesign thanks for your guidance here.

I've tried adding # and removed the 404 info but this hasn't changed anything.

The ht.access is in the root file. what I cant understand is this used to work brilliantly but I have no idea why it would just stop working. ???

New member

Posts

Joined
Tue May 01, 2012 5:51 pm

Post by bmsupplies » Tue Nov 26, 2013 11:25 pm

Ive been totally stuck trying to solve this. Ive taken a fresh install and taken the uploaded the original Htaccess file and still no joy!

Ive had hostgator take a look but I received this answer.....
have reviewed the site and it appears that it is an OpenCart based site. I was able to replicate the issue and it seems to either be related to the MySQL database for the site or the .htaccess file used for the site. I was able to verify that the MySQL credentials within it's configuration file were correct by connecting to the database for the site via the command line. In addition, I have tried replacing your .htaccess file with a stock one to see if this corrects the issue. Unfortunately, it did not and I restored your .htaccess file.

This appears to be an issue with the script created by the developer. Unfortunately, we are unable to troubleshoot issues such as these as they are related to coding. In order to get this issue handled appropriately, we recommend contacting the developer of the script. If you need to have any server work performed, we are more than happy to assist you with them!
Feels like a bit of finger pointing here, and up until the server went down everything was functioning perfect.
The only other thing I can think of is that there is a problem with Apache on the server or something has changed/lost during downtime. can any one help me further or offer suggestions?

New member

Posts

Joined
Tue May 01, 2012 5:51 pm

Post by labeshops » Wed Nov 27, 2013 12:13 am

I would suggest checking with your hosts and make sure apache rewrite is still enabled. I've had hosts do updates and turn things off for stupid reasons before or only re-enable items when asked to. If you really made no changes and it suddenly stopped working, something your hosts did is the most likely culprit. Hostgator is not the best hosts.

Running Opencart v3.0.3.9 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.


User avatar
Expert Member

Posts

Joined
Thu Aug 04, 2011 4:41 am
Location - Florida, USA

Post by dmsims » Wed Nov 27, 2013 2:19 am

Put this into a file called say phpinfo.php and run it:

Code: Select all

<?php

// Show all information, defaults to INFO_ALL
phpinfo();

?>

Active Member

Posts

Joined
Sat Apr 13, 2013 6:05 pm

Post by cwswebdesign » Wed Nov 27, 2013 3:35 am

bmsupplies wrote:@cwswebdesign thanks for your guidance here.

I've tried adding # and removed the 404 info but this hasn't changed anything.

The ht.access is in the root file. what I cant understand is this used to work brilliantly but I have no idea why it would just stop working. ???
Is the opencart install in the same folder as well? Or is the .htaccess in root and the Opencart install in a subfolder?

DL

This account is inactive. Look for us under the name 'EvolveWebHosting' and contact us under that username.

Thanks!


User avatar
Active Member

Posts

Joined
Sun Dec 11, 2011 12:26 am
Location - USA

Post by bmsupplies » Wed Nov 27, 2013 4:45 pm

cwswebdesign wrote:
bmsupplies wrote:@cwswebdesign thanks for your guidance here.

I've tried adding # and removed the 404 info but this hasn't changed anything.

The ht.access is in the root file. what I cant understand is this used to work brilliantly but I have no idea why it would just stop working. ???
Is the opencart install in the same folder as well? Or is the .htaccess in root and the Opencart install in a subfolder?

DL
The install of opencart is in the root along with the htaccess, nothing seems to have moved in that respect.

Im currently checking with hostgator to check the apache hasnt been changed, I have a feeling it could be this but Ill let you know.

Im alos going to try dmsims suggestion with the php.

thanks for all you help guys!!!

New member

Posts

Joined
Tue May 01, 2012 5:51 pm

Post by bmsupplies » Wed Nov 27, 2013 4:50 pm

dmsims wrote:Put this into a file called say phpinfo.php and run it:

Code: Select all

<?php

// Show all information, defaults to INFO_ALL
phpinfo();

?>
I just tried this but to no avail, unless im doing this wrong.

I added the text into notepad and uploaded to the root is this what you meant by running it?
sorry about this I have lack of knowledge in some areas of this

New member

Posts

Joined
Tue May 01, 2012 5:51 pm

Post by cwswebdesign » Wed Nov 27, 2013 10:18 pm

bmsupplies wrote:
cwswebdesign wrote:
bmsupplies wrote:@cwswebdesign thanks for your guidance here.

I've tried adding # and removed the 404 info but this hasn't changed anything.

The ht.access is in the root file. what I cant understand is this used to work brilliantly but I have no idea why it would just stop working. ???
Is the opencart install in the same folder as well? Or is the .htaccess in root and the Opencart install in a subfolder?

DL
The install of opencart is in the root along with the htaccess, nothing seems to have moved in that respect.

Im currently checking with hostgator to check the apache hasnt been changed, I have a feeling it could be this but Ill let you know.

Im alos going to try dmsims suggestion with the php.

thanks for all you help guys!!!
Did you contact hostgator? I've been seeing a lot of reports on the internet of people irritated with hostgator as well. If you want, PM me and I'll help you out.

DL

This account is inactive. Look for us under the name 'EvolveWebHosting' and contact us under that username.

Thanks!


User avatar
Active Member

Posts

Joined
Sun Dec 11, 2011 12:26 am
Location - USA

Post by bmsupplies » Wed Nov 27, 2013 11:05 pm

Currently have a support ticket, Just waiting on a reply.

I'll just hang fire for now but may take you up on your offer.thanks

New member

Posts

Joined
Tue May 01, 2012 5:51 pm

Post by bmsupplies » Thu Nov 28, 2013 4:34 pm

Sooooo.......

Looks like hostgator got back to me.
Thank you for contacting HostGator support. Mod_rewrite is enabled in apache as seen below:
[root@bmsupplies logs]# apachectl -M 2>&1 | grep rewri
rewrite_module (shared)

Please don't hesitate to contact us if you have any further questions or concerns. Have a great day!
Can I still take you up on that offer?

New member

Posts

Joined
Tue May 01, 2012 5:51 pm
Who is online

Users browsing this forum: Majestic-12 [Bot] and 82 guests