A method to use WOZ v1.5 and Ultimate SEO URLs
Open /includes/init_includes/init_woz.php
Please edit a red part
Code:
require_once(ABSPATH . 'wp-config.php');
wp();
if ($_GET['main_page'] == FILENAME_WORDPRESS && ( is_feed() || is_trackback() )) {
gzip_compression();
require_once(ABSPATH . WPINC . '/template-loader.php');
exit();
}
Open includes\classes\ssu\cores\link.php
Please add a red part
Code:
// if the index.php is in the url, lets see if we need to rebuild the path and redirect.
if((strpos($this->original_uri, 'index.php') !== false)){
if(!isset($_GET['main_page']) || empty($_GET['main_page'])){
$_GET['main_page'] = 'index';
$this->original_uri = $this->original_uri. '&main_page=index';
}
if($this->checkPageExcludedList($_GET['main_page']))
return false;
$this->redirect_type = 2;
return false;
}
// for WordPress On ZenCart BOF
else if($_GET['main_page'] == FILENAME_WORDPRESS){ return false; }
// for WordPress On ZenCart EOF
// if we are using multi-lang, then we should have language code at the very beginning
if(SSUConfig::registry('configs', 'multilang_status')){
$languages_code = substr($this->original_uri, 0, 2);
if(!array_key_exists($languages_code, SSUConfig::registry('languages')))
$this->redirect_type = 1;
else{
$_get['language'] = $languages_code;
$this->original_uri = trim(substr($this->original_uri, 2), '/');
}
}
you'll need to set the Ultimate SEO URL rewrite rules to ignore direct client requests for the /blog folder by using an additional RewriteCond.
eg)
Code:
# Don’t rewrite blog directory
RewriteCond %{REQUEST_URI} !^/blog.* [NC]
RewriteCond %{REQUEST_URI} !^/wordpress.* [NC]
# Handle all other URIs using Zen Cart (index.php)
RewriteRule (.*) /index.php?%{QUERY_STRING} [L]
# Do rewrite blog directory
RewriteRule ^blog(.*)$ /index.php?main_page=wordpress&$1 [E=VAR1:$1,QSA,L]
Bookmarks