Archived content · Downloads, purchases and posting have ended.

A method to use WOZ v1.5 and Ultimate SEO URLs

2010-04-22

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]

過去のコメント / Archived comments

技術内容に関係するコメントを保存しています。投稿受付は終了しました。投稿者名・連絡先は掲載していません。

Comment #226

2010-06-16

Hi,
I think you mean the fix is for Simple SEO URL http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=1013

Not Ultimate SEO URLs??

Comment #227

2010-07-09

こんにちは、
私はあなたの修正を意味すると思う単純なSEOの URLをhttp://www.zen-cart.com/index.php?main_page=product_contrib_info& amp;products_id=1013です

しない究極のSEOのURLを??

Comment #234

2011-01-10

Thanks for your information. I am planning to instal your mode. But firstly, I would like to ask you if this mod work fine with Magic SEo URLs, or it costs some troubles.
Thanks for your response.

Comment #238

2011-08-02

i install your mod and it's great but this for simple seo url not for ultimate seo . can you help me with Ultimate seo url ? how to use please ?

Thank you , david