Jump to content

[Resolved] Dead


T1800

Recommended Posts

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?

Link to comment
Share on other sites

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>
Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 2 weeks later...

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. 

Link to comment
Share on other sites

  • 2 months later...

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

Link to comment
Share on other sites

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 Yes
SSL Priority to Force on all pages
SSL Store URL to https://web43.secure-secure.co.uk/mjpcomputerservices.co.uk/store
Standard Store URL to http://www.mjpcomputerservices.co.uk/store  <== although I see no reason for this when all pages are SSL
Cookie Domain to ??????

Link to comment
Share on other sites

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. 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.html
IndexIgnore *


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

Link to comment
Share on other sites

  • 1 month later...

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

Please 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 days

Ian

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...