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)
-   -   Is it this easy to create a static category page? (https://forum.x-cart.com/showthread.php?t=6829)

Jon 03-23-2004 04:10 PM

Is it this easy to create a static category page?
 
1) Use an .htaccess file to parse .html as php.

2) Create a category1.html

3) In category1.html put:

Code:

<?
$cat = "1";
include "./home.php";
?>


Could it be that easy? Any forseen problems with the affiliate module or the like?

groovico 03-23-2004 04:29 PM

You could do it as .php file the .html is of no relevance to google, its the ? after them that it may count against you.

So you could skip it and do

<?
$cat = "1";
include "./home.php";
?>

Inside a file called category1.php would have exactly the same effect without having to force your server to parse all .html files as PHP.

Jon 03-23-2004 04:40 PM

Would doing this effect any variables passed to home.php like affiliate links, etc.?

groovico 03-24-2004 12:55 AM

Technically it shouldn't affect it, all you're doing is including php within php so it should have access to all the variables unless the pages are doing anything non standard when reading the url params.

It's easy enough to test, set up an affilliate link and place a test sale through it and see if it registers it.

Jon 03-24-2004 08:52 AM

Will do. Thanks for your feedback.


All times are GMT -8. The time now is 08:59 AM.

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