X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   HTML Pages Not Being Called (https://forum.x-cart.com/showthread.php?t=37628)

pepperlibido 02-16-2008 08:45 PM

HTML Pages Not Being Called
 
Have generated HTML catalog and can find it at mynewsite/catalog/index.html however, when one logs on to www.mynewsite.com.au all pages including the catalog and product pages are produced in .php format.

They should be in html, shouldn▓t they?

Feel sure that they were; seem to remember pages being in .html.

Have had a number of mods installed lately. Also deleted my index.html file, hope that▓s ok or could this have something to do with it?

Please help.

balinor 02-17-2008 03:18 AM

Re: HTML Pages Not Being Called
 
That's not how the catalog works by default. If you want to use the html catalog (which I really don't recommend) you need to generate it in the root directory. If not, you need to create a redirect to the catalog/ folder. Otherwise, the browser has no idea that it should be looking in the catalog/ folder.

Instead of the html catalog, I suggest one of these mods:

CDSEO
DSEFU

pepperlibido 02-17-2008 03:40 PM

Re: HTML Pages Not Being Called
 
Thanks Balinor.


When I check the root directory the catalog file is there so don▓t understand why the html pages are not working. Any ideas please?

Re: DSEFU √ It will not work on the server (Zeus) that my host uses.

Re:CDSEO √ Have so far spent more that $200 on mods and installations and don▓t wish to fork out another couple hundred. Will be selling a small number of products and product key words are in domain name so hope this is sufficient.

You say you don▓t recommend the html rout, so in the absence of the above two mods do you recommend that I stick with php or try to sort out the html problem?


Your reply appreciated.

balinor 02-17-2008 03:42 PM

Re: HTML Pages Not Being Called
 
Zeus...sorry to hear that :(

So it looks like you are stuck with the html catalog then. You mentioned above, that your catalog is in the catalog/ directory. By 'root' I mean that you need to generate the catalog in the root of the site, meaning where your cart.php, product.php, etc files are. I DO NOT recommend php file names, as there is absolutely no optimization to them, and it will hurt you. You simply need to generate the html catalog in the root directory daily and set your directory index to index.html.

pepperlibido 02-17-2008 06:12 PM

Re: HTML Pages Not Being Called
 
Yeah.... bummer.

Definitely in the root directory. You say, ⌠Set your directory index to index.html■. I have deleted the index html file in the root directory and from the static pages in my Admin section (built my home page around home.php).Should I reinstate them and if so what goes in the index.html file? Unfortunately I didn▓t keep a copy of the contents. Also▓ what do you mean by ⌠set your directory index to index.html■?
Hope these questions are not too dumb.

Gerard

balinor 02-17-2008 06:25 PM

Re: HTML Pages Not Being Called
 
Ok, when you create the html catalog, it should create an index.html file too. Then, you need to tell the browser to look for the index.html file instead of index.php. That should be done in .htaccess (does Zeus use that?).

pepperlibido 02-17-2008 07:28 PM

Re: HTML Pages Not Being Called
 
Yes, Zeus has a hidden htaccess file which I found via ftp


Gerard

pepperlibido 02-17-2008 08:03 PM

Re: HTML Pages Not Being Called
 
Balinor, The following is the total sum of the htacess file:

DirectoryIndex home.php
RewriteEngine On
RewriteRule ^content/(.*)$ pages.php [L]

What should I change it to please.

Gerard

pepperlibido 02-17-2008 10:47 PM

Re: HTML Pages Not Being Called
 
Ok Have tried the following in both the root directory HTACCESS file and the customer folder HTACCESS but they did not work.

Changed htaccess file from: - DirectoryIndex home.php to: - DirectoryIndex home.html

Also tried from: - DirectoryIndex home.php to: - DirectoryIndex .html and Directory Index.html

Still did not work.

Also tried the following in root HTACCESS only, but to no avail.

redirect 301 /home.php http://www.mynewsite.com.au/index.html

redirect 301 /index.php http://www.mynewsite.com.au/index.html

Ready to give up.

Gerard

balinor 02-18-2008 04:20 AM

Re: HTML Pages Not Being Called
 
It would be:

DirectoryIndex index.html

But you have to make sure your index.html is present in the root directory. Don't use 301 redirects.

pepperlibido 02-18-2008 04:24 PM

Re: HTML Pages Not Being Called
 
Should I also delete the second and third lines, please? (as follows):-

RewriteEngine On
RewriteRule ^content/(.*)$ pages.php [L]

pepperlibido 02-18-2008 08:01 PM

Re: HTML Pages Not Being Called
 
Balinor, in summary everything looks good, it just plain don▓t work.

The catalog is in the Root Directory
There is an index.html file in the catalog
The HTACCESS in the root directory is as follows: -

DirectoryIndex index.html
RewriteEngine On
RewriteRule ^content/(.*)$ pages.php [L]

(have tried changing the ⌠pages.php■ to■pages.html■ but to no avail)

There is also a HTACCESS in customer within the root directory which was as follows: -

DirectoryIndex home.php changed it to: -

DirectoryIndex index.html

However, although all looks correct when www.mynewsite.com.au is entered, you are directed to home.php

Do you think I should take this up with my Host or Qualteam?

Gerard

balinor 02-19-2008 04:26 AM

Re: HTML Pages Not Being Called
 
Sounds like Zeus doesn't recognize the .htaccess file. Is there a control panel setting for specifying the index file? I'm not familiar with Zeus so I really can't help much. It is definitely a hosting issue, as X-Cart will load whatever the server tells it to.

pepperlibido 02-20-2008 06:10 PM

Re: HTML Pages Not Being Called
 
Balinor,

Thanks for your help.

When I eventually find out from my host how to do this, will post it here in case others need it.

Thanks again.
Gerard

pepperlibido 02-24-2008 08:38 PM

Re: HTML Pages Not Being Called
 
Should anyone on a Zeus server have the same problem, here is the answer.

After being told originally that this could not be bone through the .htaccess file, guess what?

The very same support staffer came up with the following, which works.

He has only wasted 5 days out of my schedule not to mention the time that you guy have put into helping me. Thanks again.

The following is the contents of the .htaccess file : -

redirect /index.php
http://mynewsite.com.au/catalog/index.html


All times are GMT -8. The time now is 12:14 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.