Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

SEO

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-30-2005, 01:29 AM
 
mfcopier mfcopier is offline
 

Senior Member
  
Join Date: Nov 2002
Posts: 172
 

Default SEO

Could someone please advise the best way to present the first page for search engines at the moment it re-directs from www.inkjetcartridgesuk.com to index.php then to:

http://www.inkjetcartridgesuk.com/xcart/catalog/index.html

How do you get your first page to the root without redirecting???

Thanks

Garry
__________________
www.inkjetcartridgesuk.com

X-Cart version 4.0.11
PHP 4.3.10
MySQL server 3.23.58
MySQL client 3.23.49
Web server Apache/1.3.27 (Unix) PHP/4.3.10
Reply With Quote
  #2  
Old 03-30-2005, 03:44 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

First you need to move X-Cart to the root directory. Then you will need to change your html catalog generation to point to the root as well. There are multiple threads on both of these topics. It is much easier than it sounds, trust me
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 03-30-2005, 04:33 AM
 
mfcopier mfcopier is offline
 

Senior Member
  
Join Date: Nov 2002
Posts: 172
 

Default SEO

Yes seen this but when i try to look $catalog_dir_name = "catalog"; cannot find it and will that work?????


<---snip---->
I've had a few people asking me this question so I thought I'd post it up for others.

It's a very simple mod to do, but it is very effective. It basically moves your catalog .html pages into your root directory i.e. http://www.yourdomain.com/index.html instead of http://www.yourdomain.com/catalog/index.html

It makes your site much more likely to be spidered by search engines, and increases page rankings by moving them a step closer to root.

----

1) Download and open the file admin/html_catalog.php in a text editor

Find this code:

Code:
$catalog_dir_name = "catalog";


Change to:

Code:
$catalog_dir_name = "";


2) Reupload your file.

3) You will then have to give your root directory permission to be written to. This will likely require the directory being chmod'd 666 or 777. Look up "chmod" on the search engines if you are unsure how to do this.

4) You can then login to your admin section, click on HTML Catalog, and generate your new catalog. An index page will be created for your site.

---

That's all there is to it.
__________________
www.inkjetcartridgesuk.com

X-Cart version 4.0.11
PHP 4.3.10
MySQL server 3.23.58
MySQL client 3.23.49
Web server Apache/1.3.27 (Unix) PHP/4.3.10
Reply With Quote
  #4  
Old 03-30-2005, 04:40 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

In Version 4, you just need to change the path in the admin area in the HTML Catalog screen. At the bottom of the screen there is a section that says:

Generate catalogs for the following languages:

Just change /catalog to /
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 03-30-2005, 04:45 AM
 
mfcopier mfcopier is offline
 

Senior Member
  
Join Date: Nov 2002
Posts: 172
 

Default SEO

What do i change it to sorry for being thick

Garry
__________________
www.inkjetcartridgesuk.com

X-Cart version 4.0.11
PHP 4.3.10
MySQL server 3.23.58
MySQL client 3.23.49
Web server Apache/1.3.27 (Unix) PHP/4.3.10
Reply With Quote
  #6  
Old 03-30-2005, 04:47 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Change it from:

/catalog

to

/
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 03-30-2005, 04:48 AM
 
mfcopier mfcopier is offline
 

Senior Member
  
Join Date: Nov 2002
Posts: 172
 

Default SEO

Gettin this fault

Generating catalog

Converting pages to HTML

Warning: fopen(/home/www/inkjetca/xcart//index.html): failed to open stream: Permission denied in /home/www/inkjetca/xcart/admin/html_catalog.php on line 112
Cannot save file: /home/www/inkjetca/xcart//index.html
__________________
www.inkjetcartridgesuk.com

X-Cart version 4.0.11
PHP 4.3.10
MySQL server 3.23.58
MySQL client 3.23.49
Web server Apache/1.3.27 (Unix) PHP/4.3.10
Reply With Quote
  #8  
Old 03-30-2005, 04:51 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Hmmm...that is interesting. Try removing the slash all together and just leaving the box blank.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #9  
Old 03-30-2005, 04:54 AM
 
mfcopier mfcopier is offline
 

Senior Member
  
Join Date: Nov 2002
Posts: 172
 

Default SEO

Comes up with ERROR No languages are selected

Garry
__________________
www.inkjetcartridgesuk.com

X-Cart version 4.0.11
PHP 4.3.10
MySQL server 3.23.58
MySQL client 3.23.49
Web server Apache/1.3.27 (Unix) PHP/4.3.10
Reply With Quote
  #10  
Old 03-30-2005, 04:55 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Ok, might be a permission error then. What is your xcart folders permission set to?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 09:48 AM.

   

 
X-Cart forums © 2001-2020