11-06-2006, 01:11 PM
|
|
|
|
X-Wizard
|
|
Join Date: Dec 2005
Posts: 1,071
|
|
|
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
|
__________________
-Jon Langevin
WARNING: Unethical developer - NOT RECOMMENDED
See details here
|
|