I have, and it seems to work fine.
Printable View
I have, and it seems to work fine.
Mark,
Yes, we installed the Wordpress mod from Numinix and definitely think it is worth the investment. Have had no glitches so far. There was some miscommunication during the installation (we paid Numinix to do the install, which was a fairly modest cost), but I think we just caught them at a busy time. I would certainly work with Numinix again. Also purchased other mods from them and have used some of their free mods and all have been excellent.
Cheers, Sean
Hi Guys,
I've followed the steps as per Numinix blog post. My blogs homepage is working fine however when posts, categories etc are clicked I get redirected to our stores homepage. This happens only when Permalink Settings in Wordpress are set to anything other than default.
Blog is installed at mystore.com/wpblog/
WordPress Address (URL) in settings set to http://mystore.com/wpblog
Site Address (URL) in settings set to http://beautystore4u.co.uk/blog
/index.php?main_page=blog is rewritten to /blog/ by CEON URI
Could I ask someone to have a look at my blog and give advise -> http://goo.gl/OBO7q
I think the problem is in .htaccess file. Wordpress advises to put the code below in .htaccess but it crashes my site:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]
Kind Regards Damian K.
I know that it's sad that I'm replying to my own post but I have to say that I've managed to finally work this out.
I've removed tha rewrite from CEON URI and used the rewrite from NUMINIX post, but I placed it on the top of .htacces file, above CEON URI rules:
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteRule ^blog(.*)$ /index.php?main_page=blog&$1 [E=VAR1:$1,QSA,L]
If anyone is struggling with this setup I'm more than happy to help.
Kind Regards
Damian K.
zc 1.3.9h
relevant mods installed: Ceon URI Mapping, WP Zencart Integration Package (Numinix)
blog viewable at http://www.adamantbarbell.com/blog/
WP directory is www.adamantbarbell.com/blog-backend/
I'm having trouble with a final piece of the integration of WP into zc. I followed the instructions at the link below.
https://www.numinix.com/blog/2009/09...n-cart-1-3-8a/
The problem is when I click any links on my blog page, whether to view a single post, view by category, view by tag, etc, I get the zc 404 (not found) page.
I added a line to htaccess to tell Ceon URI Mapping to not redirect requests for the /blog-backend directory so I can access the WP admin. Below is my htaccess, edited only to remove a few things totally unrelated to URL rewriting.
If I add the below line, I lose my WP css formatting. I donj't know why. Perhaps there is a problem with the RewriteRule given that WP is at /blog-admin , the first part of which may be causing a match to /blog ? I can access the WP admin subdirectory in /blog-backend fine. Note that I do have a blank html page at www.adamantbarbell.com/blog-backend because I don't want the blog to be viewable there.Code:RewriteEngine On
# Don't rewrite any URIs ending with a file extension (ending with .[xxxxx])
RewriteCond %{REQUEST_URI} !\.[a-z]{2,5}$ [NC]
# Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !^/myadmindir [NC]
# Don't rewrite editors directory
RewriteCond %{REQUEST_URI} !^/editors [NC]
# Don't rewrite cPanel directories
RewriteCond %{REQUEST_URI} !/cpanel [NC]
RewriteCond %{REQUEST_URI} !/frontend [NC]
# Don't rewrite WordPress directory
RewriteCond %{REQUEST_URI} !^/blog-backend/ [NC]
# Handle all other URIs using Zen Cart (index.php)
RewriteRule .* index.php?%{QUERY_STRING} [L]
# Redirect all requests for all non-canonical domains to same page in www.example.com
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^www\.adamantbarbell\.com$
RewriteRule (.*) http://www.adamantbarbell.com/$1 [R=301,L]
Code:# wordpress integration
RewriteRule ^blog(.*)$ /index.php?main_page=blog$1 [L]
One of the biggest reasons why module installs fail is that the install instructions are not followed..:blush: That said if you followed Step 4 of the instructions, then adding an index.html is not necessary and probably a BIG part of your issue.. Remove that file.. follow the instructions for adding the correct directive for Ceon URI and let me know if that works..
Quote:
Step 4:
- Open http://www.domain.com/path_to_wordpress/wp-admin/ and go to SETTINGS
- Change WordPress address (URL) to http://www.domain.com/folder_name_of_your_choice (WordPress will be physically installed here)
- Change Blog address (URL) http://www.domain.com/blog
Note: these two paths must not match. If WordPress is located in “/wordpress/”, then the blog will be publicly accessible through an alternate URL (i.e. /blog/). You can name either whatever you like, but the blog must physically exist at the WordPress Address. The Blog address will be used as a rewrite for the Zen Cart page we will be building later on. If you’d like to use a different name other than /blog/ in the URL, you’ll need to modify the htaccess rewrite provided in the Zen Cart installation instructions below.
This will likely NOT work and could either break Ceon URI or prevent you from accessing your WordPress admin..
It's been a while since I used the blog embedding solution. My previously posted advice is WRONG.. (my bad!:blush:)
Your issue is your .htaccess file settings.. let's see if this helps..Quote:
Step 2:
First, you will need to disable access to your current blog by uploading a blank file named index.html to your WordPress root directory. You may also want to rename your index.php file in case your server settings automatically load this file before any html files (this will differ from server to server).
I posted this a LONG time ago on the Numinix post, but here it is again..
Step 6 of the Numinix instructions reads:
If you are using Ceon URI you need to use the following directives in your .htaccess file instead:Quote:
In your domain root, open .htaccess and add the following:
Code:Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteRule ^blog(.*)$ /catalog/index.php?main_page=blog&$1 [E=VAR1:$1,QSA,L]
Doing this not only excludes the “blog” directory from being re-written, but it also excludes the actual directory where the WordPress files are physically located otherwise you will find yourself unable to access your WordPress admin.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=blog&$1 [E=VAR1:$1,QSA,L]
ie: http://www.yoursite.com/wordpress/wp-admin
DivaVocals, thank you for the replies!
So if I understand right I should go by your last post rather than the previous one?
I made the changes in htaccess and now have this:
Code:RewriteEngine On
# Don't rewrite any URIs ending with a file extension (ending with .[xxxxx])
RewriteCond %{REQUEST_URI} !\.[a-z]{2,5}$ [NC]
# Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !^/sysop [NC]
# Don't rewrite editors directory
RewriteCond %{REQUEST_URI} !^/editors [NC]
# Don't rewrite cPanel directories
RewriteCond %{REQUEST_URI} !/cpanel [NC]
RewriteCond %{REQUEST_URI} !/frontend [NC]
# Don't rewrite blog directory
RewriteCond %{REQUEST_URI} !^/blog.* [NC]
RewriteCond %{REQUEST_URI} !^/blog-backend.* [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=blog&$1 [E=VAR1:$1,QSA,L]
http://www.adamantbarbell.com/blog is now rewritten in my browser as http://www.adamantbarbell.com/blog?%2F=/
And the WP styling has been lost, so the WP stylesheet is apparently now not being imported after the above htaccess change. I view the page source of the above and there is the below line.
blog.css includes the below lineCode:<link rel="stylesheet" type="text/css" href="includes/templates/mistik/css/blog.css" />
@import url('/blog-backend/wp-content/themes/zencart/style.css');
For troubleshooting, when I tried accessing http://www.adamantbarbell.com/blog-b...cart/style.css in a browser I got a Forbidden error.
As far as step 4 you quoted in your first reply, I already had changed those settings as directed during the process and checked them again. I tried removing the blank index.html file I had created in the WP directory, and putting index.php back, but it doesn't appear to have affected the problem.
I could try the WP process of renaming my WP directory from /blog-backend to /wp if that might be causing some trouble with the rewrite matching?
I HATE the "throw everything against the wall" method of troubleshooting..:smile: So let's stick to following the Numinix instructions and using the .htaccess changes I posted if you are using Ceon URI.. That import statement you in your stylesheet have needs to be removed as does ANYTHING else you've done which does NOT explicitly follow the Numinix instructions and the .htaccess changes I posted..
That means follow the Numinix instructions and COPY your theme’s style.css file into the includes/templates/mistik/css/blog.css file.
The import statement in the blog.css stylesheet is a result of the Numinix instructions. Numinix links to instructions saying to create a WP child theme and create a new style.css file in that theme's folder with the following content.
/blog-backend/wp-content/themes/zencart/style.css
And then make a copy of the child theme style.css to blog.css, edit it to change any image URL paths (I didn't make edits for that because I didn't see any such thing), then copy it to my zencart template's css folder.Code:/*
Theme Name: Twenty Thirteen Child
Theme URI: http://example.com/twenty-thirteen-child/
Description: Twenty Thirteen Child Theme
Author: John Doe
Author URI: http://example.com
Template: twentythirteen
Version: 1.0.0
*/
/* =Imports styles from the parent theme
-------------------------------------------------------------- */
@import url('../twentythirteen/style.css');
/* =Theme customization starts here
-------------------------------------------------------------- */
That wasn't working well for me because of the vast number of unneeded styles it was importing from the 'twentythirteen' theme that were screwing up the display of the blog page within zencart, like the way it changed the default table style and all kinds of other tags. So I removed the @import line of /blog-backend/wp-content/themes/zencart/style.css and instead just copied most of the styles from /blog-backend/wp-content/themes/twentythirteen/style.css that didn't seem to screw things up, and changed some the styles to look more uniform in my site. So my /blog-backend/wp-content/themes/zencart/style.css file is still pretty large, and I could post it if needed, but I assume the styles content isn't important as far as my problem goes.
I don't understand why it didn't just have me copy a file with all the WP styles I want into the .css file in the zc template directory. That would fix this wacky importing problem at least, although it wouldn't fix the broken links problem.