* !!! * HELP * !!! * - Pages aren't showing!

For some reason my homepage shows but when I click on ANY other page, it shows the 404 error! Please help!



All I’ve done was disable hotlink protection until I solve another problem.



Brenda

Hi,

I have seen this when SEO (apache rewrite) was turned on. Looks like you may have this turned on. May want to turn off and see what happens.

I had this problem and had to get the rewrite problem fixed before turning back on. I could not get to my pages either.

Bob

But my SEO has been turned on since I set up the cart & I never had this problem before. Still think I should turn it off? I’d have to have to redo them all again after it’s back on.

Have you added any java scripts to your cart recently.

Yes, I added a tracking script to the very bottom of the bottom.tpl page. I just removed it to see if that was the issue & I’m still having the same problem.

CS-Cart is not friendly with other scripts, and other than a server problem, thats all I can think of just now.

just a shot in the dark

did you reupload the original .htaccess in ascii mode?

The .htaccess is edited online via my cPanel’s hotlink protection section, so I didn’t need to reupload. But I just looked at it in my file manager & it says: File Type: ASCII text

[quote name=‘zardos’]CS-Cart is not friendly with other scripts, and other than a server problem, thats all I can think of just now.[/QUOTE]



If it was a server problem, then would I not be able to access any of my other sites? (I have 6 total) & also I can still access the homepage & a couple of others, which makes me think it’s not a server problem.

try reuploading a new .htaccess

all it takes is a space being off or a carriage return



I am not familiar with cpanel, I edit/backup on my local and reupload the modified files



also, after you get this straightened out, you might want to consider ways to make hotlinking work FOR you (and allowing it), and not restricting it

:wink:

I don’t know how to edit the .htaccess file or how it should look.

The .htaccess file for rewriting should look like:


```php

RewriteEngine on

DirectoryIndex index.html index.php




Some hostings require RewriteBase to be uncommented

Example:

Your store url is http://www.yourcompany.com/store/cscart


# So "RewriteBase" should be:
# RewriteBase /store/cscart
RewriteBase /


RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php?sef_rewrite=1 [L,QSA]

```

.htaccess files are very touchy and any changes to it can cause problems. I always keep a backup copy of my .htaccess file. To edit, go to cpanel and click on it. Then click edit. A new window/tab should open and you can edit directly in there. But make a copy of whatever you have before you mess with it, just in case.

Make sure the permissions on the .htaccess file are 755 or 777, otherwise the pages won’t load.

[quote name=‘JesseLeeStringer’]Make sure the permissions on the .htaccess file are 755 or 777, otherwise the pages won’t load.[/QUOTE]





I tried changing it (it was at 644) & still getting error pages. :cry:

[quote name=‘JesseLeeStringer’]Make sure the permissions on the .htaccess file are 755 or 777, otherwise the pages won’t load.[/QUOTE]



Huh? Did you have a brainfart Jesse? LOL



It’s supposed to be 644 Brennie.



It either has something to do with the “hotlink protection” in which I have never heard of so I can’t be of any help there, and/or the script that you added. Did you remove the script completely and did you clean your cache afterwards?

[quote name=‘Tool Outfitters’]Huh? Did you have a brainfart Jesse? LOL



It’s supposed to be 644 Brennie.



Got a few servers I’ve had to working on that needed the 755 :rolleyes:


[quote name=‘Tool Outfitters’]

It either has something to do with the “hotlink protection” in which I have never heard of so I can’t be of any help there, and/or the script that you added. Did you remove the script completely and did you clean your cache afterwards?[/quote]



hotlink protection ensures that websites can’t directly link images from competitors / unauthorised websites and display those images in another website. ie saves bandwidth theft.

Well hotlink protection and or scripts are my best guess on your problem, some time ago I had a mod for another cart, that stopped working because I enabled “hotlink protection”, have you tried turning this off to see if it makes a difference.

Yeah, I had to go find out for myself what hotlink protection was. I didn’t even notice it in CPanel. Sounds like too much trouble. I wasn’t about to check it out to see if it worked or not. I have only had 1 case were someone did that with one of my pics. If it gets to a point where it is happening all the time, I might enable it and see what gets messed up. LOL



There is a post in here where someone said it messed up his htaccess file but he didn’t specify whether it messed his pages up or not.



[url]http://forum.cs-cart.com/showthread.php?t=7454&highlight=protection[/url]

Tool Outfitters, I did remove the script & cleared cache & it didn’t fix the problem. I didn’t think that was it, as I installed that script a couple of weeks ago & this issue just started right after I enabled the hotlink protection, so I’m positive that’s causing it somehow but I just don’t know how to fix it!



I did disable it again, & all that did was allow me to see images in my admin section again (when I first enabled it, my images in admin wouldn’t show - I’m guessing I need to add https to the sites allowed).



Anyway, I contacted my hosting support, because it’s their cPanel but they aren’t being very helpful right now - meanwhile my visitors can’t get to my pages & I could be losing sales. I’m getting very frustrated!



This forum is the only helpful place! Thank you all for trying to help - I really appreciate it. I’ll put a support ticket in for cs-cart cuz my hosting support is adamant that it has to do with search engine friendly URL’s.



~B

[quote name=‘Tool Outfitters’]There is a post in here where someone said it messed up his htaccess file but he didn’t specify whether it messed his pages up or not.



[url]http://forum.cs-cart.com/showthread.php?t=7454&highlight=protection[/url][/QUOTE]



I looked at that post & in fact, my .htaccess was missing the ModRewrite on line so I added it back, & I am still having the problem. :cry: