X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   XC SEO v1.1.0 Released (https://forum.x-cart.com/showthread.php?t=25297)

JJD 11-03-2006 03:05 AM

Re: XC SEO v1.1.0 Released
 
Hi,

Will this mod only work with Apache because of the rewrite rules, will it work in IIS.

Regards,

intel352 11-03-2006 01:14 PM

Re: XC SEO v1.1.0 Released
 
if your installation of IIS has a type of mod rewrite installed, this product might work for you. the problem is, rewrite for IIS is usually an addon that has to be purchased, altho there are 1 or 2 free versions.

MyCleaningProducts 11-03-2006 03:01 PM

Re: XC SEO v1.1.0 Released
 
I never recieved a .htasccess file from the download, only the secure.htaccess one

Are positive I should have recieved it in the download.




Stop Black Mold

intel352 11-04-2006 06:41 AM

Re: XC SEO v1.1.0 Released
 
It is included with the download archive. You can view the htaccess here:

http://x-cart-seo.googlecode.com/svn/trunk/.htaccess

ShishaPipeUK 11-06-2006 05:46 AM

Re: XC SEO v1.1.0 Released
 
Quote:

Originally Posted by ezi designs
Hi Guys

Thanks for all your help and i am getting there, well im there all bar one one error

Parse error: syntax error, unexpected T_IF in /home/ezidesig/public_html/storedzine/include/get_language.php on line 206

Here is what the code looks like in that folder;

Code:


if (
($current_area == "C" || $current_area == "B") &&
!empty($HTTP_GET_VARS["sl"]) &&
!defined('IS_ROBOT') &&
############################################################
# X-CART-SEO Mod :: http://code.google.com/p/x-cart-seo/
############################################################
if (!empty($active_modules["XC_SEO"])) {
func_header_location($l_redirect);
}else{
if (!preg_match('!(\.htm(l)?|/$)!',$_tmp["path"])) {
func_header_location($l_redirect);
}
}
# End SEO {



Ezi Designs, you will get this error as it is wrong.

Also the install 4.1.3 instructions are wrong a little bit.

The instructions say:

IV. includes/get_language.php
===================
OPTIONAL:
The change to "get_language.php" is to avoid issues with
sites that have the language selector enabled.
NOTE: This change is for X-Cart 4.1.x series. Owners of 4.0.x, please
verify if this alteration is needed.
-----------
Find Code:
-----------
Code:


if (!preg_match('!(\.htm(l)?|/$)!',$_tmp["path"])) {
func_header_location($l_redirect);
}

------------
Replace With
------------
Code:


############################################################
# X-CART-SEO Mod :: http://code.google.com/p/x-cart-seo/
############################################################
if (!empty($active_modules["XC_SEO"])) {
func_header_location($l_redirect);
}else{
if (!preg_match('!(\.htm(l)?|/$)!',$_tmp["path"])) {
func_header_location($l_redirect);
}
}
# End SEO


Well my virgin 4.1.3 file has at line 199

Code:


if (
 ($current_area == "C" || $current_area == "B") &&
 !empty($HTTP_GET_VARS["sl"]) &&
 !defined('IS_ROBOT') &&
 !preg_match('/\.html?($|\?)|\/$/s', $l_redirect)
) {
 func_header_location($l_redirect);
}


The instructions say find code:

Code:


if (!preg_match('!(\.htm(l)?|/$)!',$_tmp["path"])) {
func_header_location($l_redirect);
}


Which does not exist in my x-cart 4.1.3

Jiser 11-06-2006 12:45 PM

Re: XC SEO v1.1.0 Released
 
Intel352, although I explained to you some time ago that I'm not using or planning to install XC SEO or any other rewrite rule. BUT I still greatly admire your commitment to this forum!!

I'm still wondering why you're doing all those stuff... Is there a special reason for all this? Are you somekinda secret agent of Google? Or a new type of angel? I dunno, but I just wanna know! :)

Keep up the GOOD WORK!!

Michael

intel352 11-06-2006 01:11 PM

Re: XC SEO v1.1.0 Released
 
Shisha, Please refer to this post for corrected instructions:

http://forum.x-cart.com/showthread.php?p=146906#post146906

Quote:

Originally Posted by ShishaPipeUK
Ezi Designs, you will get this error as it is wrong.

Also the install 4.1.3 instructions are wrong a little bit.

The instructions say:

IV. includes/get_language.php
===================
OPTIONAL:
The change to "get_language.php" is to avoid issues with
sites that have the language selector enabled.
NOTE: This change is for X-Cart 4.1.x series. Owners of 4.0.x, please
verify if this alteration is needed.
-----------
Find Code:
-----------
Code:


if (!preg_match('!(\.htm(l)?|/$)!',$_tmp["path"])) {
func_header_location($l_redirect);
}

------------
Replace With
------------
Code:


############################################################
# X-CART-SEO Mod :: http://code.google.com/p/x-cart-seo/
############################################################
if (!empty($active_modules["XC_SEO"])) {
func_header_location($l_redirect);
}else{
if (!preg_match('!(\.htm(l)?|/$)!',$_tmp["path"])) {
func_header_location($l_redirect);
}
}
# End SEO


Well my virgin 4.1.3 file has at line 199

Code:


if (
 ($current_area == "C" || $current_area == "B") &&
 !empty($HTTP_GET_VARS["sl"]) &&
 !defined('IS_ROBOT') &&
 !preg_match('/\.html?($|\?)|\/$/s', $l_redirect)
) {
 func_header_location($l_redirect);
}


The instructions say find code:

Code:


if (!preg_match('!(\.htm(l)?|/$)!',$_tmp["path"])) {
func_header_location($l_redirect);
}


Which does not exist in my x-cart 4.1.3


intel352 11-06-2006 01:14 PM

Re: XC SEO v1.1.0 Released
 
Quote:

Originally Posted by Jiser
Intel352, although I explained to you some time ago that I'm not using or planning to install XC SEO or any other rewrite rule. BUT I still greatly admire your commitment to this forum!!

I'm still wondering why you're doing all those stuff... Is there a special reason for all this? Are you somekinda secret agent of Google? Or a new type of angel? I dunno, but I just wanna know! :)

Keep up the GOOD WORK!!

Michael


Thanks, I appreciate it :-D

This work was started for the sake of my previous employer (didn't want to have to pay for an SEO solution), and the code was released as GNU GPL to hopefully generate a community around the module, so that there would be a good community for testing and improving the code. Additionally, since there wasn't a free SEO solution available, figured this would be a good free addition to x-cart ;-)

x-online 11-08-2006 05:50 AM

Re: XC SEO v1.1.0 Released
 
Hi there,

First of all thanks for the mod ;) much appreciated. I think i find another error under the froggle section.. here is the current (i'm using 4.13) section that i can find:

# Post string
$post = func_froogle_convert($product['product'], 80)."\t".
func_froogle_convert($product['descr'], 65536)."\t".
$http_location.constant("DIR_CUSTOMER")."/product.php?productid=".$product['productid']."\t".
$tmbn."\t".

Can you please take a look at it for us?

Regards,
Poy

jasonroy 11-08-2006 06:49 AM

Re: XC SEO v1.1.0 Released
 
Just an update for some people. I've been using this for a while now, and my catalog pages are starting to show up in google's index..woo


All times are GMT -8. The time now is 08:46 PM.

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