T1800 Posted February 6, 2015 Share Posted February 6, 2015 Hi Everybody, I've just installed CC 6b4 and run through the admin pages. The home page looks fine and I can use the admin pages to change the store settings, but all the links are dead from the home page. Whatever I click on, I get the 404 - Object not found. Has anyone seen this before or know where I am going wrong? Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted February 6, 2015 Share Posted February 6, 2015 CubeCart *should* automatically create a .htaccess file. It should also warn if its can't make it. Please create a file in the root of your store folder with the code below and it should work. ## File Security <FilesMatch ".(htaccess)$"> Order Allow,Deny Deny from all </FilesMatch> #### Apache directory listing rules #### DirectoryIndex index.php index.htm index.html IndexIgnore * #### Rewrite rules for SEO functionality #### <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !=/favicon.ico RewriteRule ^(.*).html?$ index.php?seo_path=$1 [L,QSA] </IfModule> Quote Link to comment Share on other sites More sharing options...
T1800 Posted February 6, 2015 Author Share Posted February 6, 2015 Hi, Many thanks for such a quick reply. I checked for this file and found it. It looks exactly as you listed. Just to be sure I ran a chmod on the file to 755 and restarted the Apache service. Is there anything else I should check? Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted February 6, 2015 Share Posted February 6, 2015 Does your Apache web server had mod_rewrite support? You should be abel to see this in the "PHP Info" section of your admin control panel. If it doesn't - CubeCart needs it. If it does: Edit the .htaccess file and change line: RewriteRule ^(.*).html?$ index.php?seo_path=$1 [L,QSA] .. to have the root relative path of the install. e.g. RewriteRule ^(.*).html?$ /index.php?seo_path=$1 [L,QSA] or RewriteRule ^(.*).html?$ /store/index.php?seo_path=$1 [L,QSA] .. etc Please also make sure the ".htaccess" file is named exactly like that with the "." at the start. Quote Link to comment Share on other sites More sharing options...
T1800 Posted February 20, 2015 Author Share Posted February 20, 2015 Hi, I've sussed this one out now. If it helps Arch users out there, here is my solution. In my case, the directory containing the store was based in the user's home public_html directory. So the .htaccess needed modifying accordingly... <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /public_html/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !=/favicon.ico RewriteRule ^(.*).html?$ /index.php?seo_path=$1 [L,QSA] </IfModule> By default, the Apache2 installation on Arch Linux will not have the mod_rewrite module loaded so it'll need un-commenting in the httpd.conf file. Then give the service a restart... sudo systemctl restart httpd ..and you are good to go. Quote Link to comment Share on other sites More sharing options...
MJPMalc Posted April 29, 2015 Share Posted April 29, 2015 Hi,Upgraded to latest version and only index page working? done all the above but no links --error 404 Quote Link to comment Share on other sites More sharing options...
bsmither Posted April 29, 2015 Share Posted April 29, 2015 Welcome MJPMalc! Glad to see you made it to the forums.Let's check to make sure you have a web server that understands the .htaccess file. What would be your web address to the store? Quote Link to comment Share on other sites More sharing options...
MJPMalc Posted April 30, 2015 Share Posted April 30, 2015 (edited) https://web43.secure-secure.co.uk/mjpcomputerservices.co.uk/shop/index.phpIf I turn off SSL it seems OK, (Worked fine on CCversion5-Untill upgrade) but I want SSL on for security. Edited April 30, 2015 by MJPMalc add more info. Quote Link to comment Share on other sites More sharing options...
bsmither Posted April 30, 2015 Share Posted April 30, 2015 When turning off SSL -- does your store address then still use the web43 part of the URL?In admin, Store Settings, SSL tab, there is a field for Cookie Domain. According to your cookies, it is set to domain=.mjpcomputerservices.co.uk. This is not the domain actually being used, however: .secure-secure.co.uk.If your hosting provider is using .secure-secure.co.uk as a reverse proxy, then there is some more configuration needed (I'm guessing). Quote Link to comment Share on other sites More sharing options...
MJPMalc Posted April 30, 2015 Share Posted April 30, 2015 SSL Off- http://www.mjpcomputerservices.co.uk/shop/index.php only this used?Changed cookie to .secure-secure.co.ukNo change? Quote Link to comment Share on other sites More sharing options...
bsmither Posted April 30, 2015 Share Posted April 30, 2015 With non-SSL, I do get to the product page, and the "Cookie Notice" Close button works.Please let us know what your hosting provider says about the use of web43.secure-secure.co.uk/mjpcomputerservices.co.uk/ for SSL. Quote Link to comment Share on other sites More sharing options...
MJPMalc Posted April 30, 2015 Share Posted April 30, 2015 Reading this on hosting website control panel---We have mapped the URL:-https://web43.secure-secure.co.uk/mjpcomputerservices.co.uk/ to http://www.mjpcomputerservices.co.ukPlease note the s in https.This means that any files that are hosted on your main website can also be loaded securely, just link to this URL when you need to securely load a page. Quote Link to comment Share on other sites More sharing options...
bsmither Posted April 30, 2015 Share Posted April 30, 2015 Someone more knowledgeable in web server operations will need to respond.I have no idea how the setting "Cookie Domain" should be entered in this situation.But you might try:Enable SSL to YesSSL Priority to Force on all pagesSSL Store URL to https://web43.secure-secure.co.uk/mjpcomputerservices.co.uk/storeStandard Store URL to http://www.mjpcomputerservices.co.uk/store <== although I see no reason for this when all pages are SSLCookie Domain to ?????? Quote Link to comment Share on other sites More sharing options...
MJPMalc Posted April 30, 2015 Share Posted April 30, 2015 The above post --where is httpd.conf file-? I can't find it!! By default, the Apache2 installation on Arch Linux will not have the mod_rewrite module loaded so it'll need un-commenting in the httpd.conf file. Then give the service a restart...sudo systemctl restart httpd ..and you are good to go. Quote Link to comment Share on other sites More sharing options...
bsmither Posted April 30, 2015 Share Posted April 30, 2015 If you have permission to affect the operation of the web server that serves the pages of your web site, then http.conf may be made available to you through your hosting control panel.If you are on your own dedicated server, then there may be a special tool button to edit this file. There may also be a tool button to restart the web server.Perhaps your hosting provider may be able to assist. Quote Link to comment Share on other sites More sharing options...
MJPMalc Posted May 1, 2015 Share Posted May 1, 2015 Hello,After a crash course in server code(Late night) it WORKS!!!, I changed this marked in red :----## File Security<FilesMatch ".(htaccess)$"> Order Allow,Deny Deny from all</FilesMatch>#### Apache directory listing rules ####DirectoryIndex index.php index.htm index.htmlIndexIgnore *<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !=/favicon.ico RewriteRule ^(.*).html?$ /mjpcomputerservices.co.uk/shop/index.php?seo_path=$1 [L,QSA] <---Added this part</IfModule> Quote Link to comment Share on other sites More sharing options...
havenswift-hosting Posted June 4, 2015 Share Posted June 4, 2015 Reading this on hosting website control panel---We have mapped the URL:-https://web43.secure-secure.co.uk/mjpcomputerservices.co.uk/ to http://www.mjpcomputerservices.co.ukPlease note the s in https.This means that any files that are hosted on your main website can also be loaded securely, just link to this URL when you need to securely load a page.This appears to be a method to provide a shared SSL - never been a good idea and if you want to use SSL (as all stores should) then why not simply purchase and install your own - they are very cheap these daysIan Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted June 4, 2015 Share Posted June 4, 2015 (edited) I would recommend avoiding shared SSL personally. You can get a dedicated SSL certificate for less than £10 for three years. https://www.ssls.com/comodo-ssl-certificates/positivessl.html Edited June 4, 2015 by Al Brookbanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.