Forums / All Other Contributions/Addons / Numinix Blog Embedding Issues/Questions

Numinix Blog Embedding Issues/Questions

Started by yiannis on 5 Aug 2011, 5:08 PM · Views: 11,160

Results 21 to 40 of 58
14 Jan 2012, 11:30 AM
#21
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Numinix Blog Embedding Issues/Questions

I have, and it seems to work fine.

15 Jan 2012, 4:47 AM
#22
smcelligott avatar

smcelligott

New Zenner

Join Date:
Nov 2009
Location:
Sydney Australia
Posts:
84
Plugin Contributions:
0

Re: Numinix Blog Embedding Issues/Questions

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

Sean M - Sydney, Australia

27 Jan 2013, 1:45 PM
#23
damiankrzyz avatar

damiankrzyz

New Zenner

Join Date:
Mar 2011
Location:
United Kingdom
Posts:
9
Plugin Contributions:
0

Re: Numinix Blog Embedding Issues/Questions

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.

Big Thanks to DEVELOPERS for such a great free Shopping Cart

27 Jan 2013, 8:18 PM
#24
damiankrzyz avatar

damiankrzyz

New Zenner

Join Date:
Mar 2011
Location:
United Kingdom
Posts:
9
Plugin Contributions:
0

Re: Numinix Blog Embedding Issues/Questions

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.

Big Thanks to DEVELOPERS for such a great free Shopping Cart

16 Sep 2013, 5:37 PM
#25
fakedecoy avatar

fakedecoy

Zen Follower

Join Date:
Jul 2006
Posts:
309
Plugin Contributions:
0

Re: Numinix Blog Embedding Issues/Questions

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 https://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/26/integrating-wordpress-into-zen-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.

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]

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 https://www.adamantbarbell.com/blog-backend because I don't want the blog to be viewable there.

# wordpress integration
RewriteRule ^blog(.*)$ /index.php?main_page=blog$1 [L]

Adamant Barbell - Home & commercial gym equipment - Since 2007
www.adamantbarbell.com

16 Sep 2013, 6:28 PM
#26
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Numinix Blog Embedding Issues/Questions

fakeDecoy:

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.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..
Step 4:

  1. Open http://www.domain.com/path_to_wordpress/wp-admin/ and go to SETTINGS
  1. Change WordPress address (URL) to http://www.domain.com/folder_name_of_your_choice (WordPress will be physically installed here)
  1. 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.

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

16 Sep 2013, 7:04 PM
#27
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Numinix Blog Embedding Issues/Questions

damiankrzyz:

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.
This will likely NOT work and could either break Ceon URI or prevent you from accessing your WordPress admin..

fakeDecoy:

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.

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]

> 
> 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](http://www.adamantbarbell.com/blog-backend) because I don't want the blog to be viewable there.**
> 
> ```
# wordpress integration
RewriteRule ^blog(.*)$ /index.php?main_page=blog$1 [L]

It's been a while since I used the blog embedding solution. My previously posted advice is WRONG.. (my bad!:blush:)

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).

Your issue is your .htaccess file settings.. let's see if this helps..

I posted this a LONG time ago on the Numinix post, but here it is again..

Step 6 of the Numinix instructions reads:

In your domain root, open .htaccess and add the following:

Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteRule ^blog(.*)$ /catalog/index.php?main_page=blog&$1 [E=VAR1:$1,QSA,L]


If you are using Ceon URI you need to use the following directives in your .htaccess file instead:

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]

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. 
ie: <http://www.yoursite.com/wordpress/wp-admin>

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

16 Sep 2013, 9:27 PM
#28
fakedecoy avatar

fakedecoy

Zen Follower

Join Date:
Jul 2006
Posts:
309
Plugin Contributions:
0

Re: Numinix Blog Embedding Issues/Questions

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:

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.

<link rel="stylesheet" type="text/css" href="includes/templates/mistik/css/blog.css" />

blog.css includes the below line

@import url('/blog-backend/wp-content/themes/zencart/style.css');

For troubleshooting, when I tried accessing http://www.adamantbarbell.com/blog-backend/wp-content/themes/zencart/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?

Adamant Barbell - Home & commercial gym equipment - Since 2007
www.adamantbarbell.com

16 Sep 2013, 9:40 PM
#29
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Numinix Blog Embedding Issues/Questions

fakeDecoy:

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:

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.
> 
> ```
<link rel="stylesheet" type="text/css" href="includes/templates/mistik/css/blog.css" />

blog.css includes the below line

@import url('/blog-backend/wp-content/themes/zencart/style.css');

For troubleshooting, when I tried accessing http://www.adamantbarbell.com/blog-backend/wp-content/themes/zencart/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.

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

16 Sep 2013, 9:59 PM
#30
fakedecoy avatar

fakedecoy

Zen Follower

Join Date:
Jul 2006
Posts:
309
Plugin Contributions:
0

Re: Numinix Blog Embedding Issues/Questions

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

/*
 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
-------------------------------------------------------------- */

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.

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.

Adamant Barbell - Home & commercial gym equipment - Since 2007
www.adamantbarbell.com

16 Sep 2013, 10:39 PM
#31
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Numinix Blog Embedding Issues/Questions

fakeDecoy:

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

/*
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
-------------------------------------------------------------- */

> 
> 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.
> 
> 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.
The instructions for creating a child theme are correct (they are from the WordPress site) However, you don't make a copy of the CHILD THEME stylesheet to blog.css, you copy the PARENT THEME stylesheet to the blog.css.. (the one with the actual style declarations) Then follow the last part of the installation instructions:

> Now is the part where you will need some experience with CSS and HTML as  you have just imported your entire blog into the main page area of your  Zen Cart template… **chances are it isn’t going to fit and all of the CSS  is ruined by the global style sheet of your Zen Cart. Or, global styles  within the blog.css file will have an effect on the look of your store.**

Once you get everything configured EXACTLY like the Numinix instructions and the .htaccess changes, and the right stylesheet code in your blog.css, see if it works..

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

17 Sep 2013, 2:17 AM
#32
fakedecoy avatar

fakedecoy

Zen Follower

Join Date:
Jul 2006
Posts:
309
Plugin Contributions:
0

Re: Numinix Blog Embedding Issues/Questions

Ok, I went ahead and changed things so the child theme has the small style.css file that imports styles from the parent theme, and the blog.css in zc has all the styles I've edited to my liking. The styles work, and the links on the blog appear to be working, although I just have one post so far so I'm not sure.

I get a 403 Forbidden when browsing to http://www.adamantbarbell.com/blog-backend/wp-admin .

The image in the blog post is also not displaying. I get a 403 Forbidden on it too. http://www.adamantbarbell.com/blog-backend/wp-content/uploads/2013/09/tpb_01-Small.jpg

I could try making another test post and upload another image, but I'm unable to do that until I can access wp-admin.

Same htaccess file as last post.

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]

Adamant Barbell - Home & commercial gym equipment - Since 2007
www.adamantbarbell.com

17 Sep 2013, 4:12 AM
#33
fakedecoy avatar

fakedecoy

Zen Follower

Join Date:
Jul 2006
Posts:
309
Plugin Contributions:
0

Re: Numinix Blog Embedding Issues/Questions

I remembered I had added a line to the database table for Ceon URI Mapping trying to fix this yesterday, and that was causing a problem with weirdly rewritten URLs that I neglected to mention. So at least that part is fixed (sorry!), the blog links are definitely working (and I have some more styling adjustments to make), but the errors I'm getting are new -

Now I get a 404 Not Found when trying to access /blog-backend or anything in it including the image in the blog post.

Same htaccess as above.

Adamant Barbell - Home & commercial gym equipment - Since 2007
www.adamantbarbell.com

17 Sep 2013, 6:22 AM
#34
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Numinix Blog Embedding Issues/Questions

fakeDecoy:

Ok, I went ahead and changed things so the child theme has the small style.css file that imports styles from the parent theme, and the blog.css in zc has all the styles I've edited to my liking. The styles work, and the links on the blog appear to be working, although I just have one post so far so I'm not sure.

I get a 403 Forbidden when browsing to http://www.adamantbarbell.com/blog-backend/wp-admin .

The image in the blog post is also not displaying. I get a 403 Forbidden on it too. http://www.adamantbarbell.com/blog-backend/wp-content/uploads/2013/09/tpb_01-Small.jpg

I could try making another test post and upload another image, but I'm unable to do that until I can access wp-admin.

Same htaccess file as last post.

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]


Now that you've rolled back all the "thorw everything at the wall to see what sticks" kind of changes, you've narrowed this down to only one issue to resolve.. So at this point it's really a matter of finding the correct directive to prevent rewriting the blog's actual physical directory (in your case, "blog-backend"). The directive to NOT re-write the virtual directory appears to be working since your blog is displaying as expected in the center content area..

You can try this instead:

replace this directive:

RewriteCond %{REQUEST_URI} !^/blog-backend.* [NC]

With this one

RewriteCond %{REQUEST_URI} !^/blog-backend($|/) [NC]

if that doesn't work, then try this.. 

RewriteCond %{REQUEST_URI} !^/blog-backend [NC]


If one of these don't work, then I need to defer to the Zen Cart community for help with this... I copied other solutions that have been posted on the Ceon URI thread (NOT the right thread to ask this question BTW..) In the meantime DO NOT change a bunch of stuff wildly..:smile: We know what the issue is.. we just have to find the RIGHT solution..

I am not an expert on Apache directives, and I no longer use any of the blog embedding solutions.. I prefer to use Zen Cart sideboxes to display specific blog content, and simply styling my blog and store to look alike.. This eliminates these kind of issues for me.. Hopefully someone in the community could help.. If after tryin one of these alternative directives you still can't get to the WordPress admin, would suggest asking lhungil very nicely if he can come over to this thread and take a look.. He's REALLY good with these Apache directives..:yes:

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

17 Sep 2013, 11:34 AM
#35
fakedecoy avatar

fakedecoy

Zen Follower

Join Date:
Jul 2006
Posts:
309
Plugin Contributions:
0

Re: Numinix Blog Embedding Issues/Questions

No luck with those two directives, but thanks for the help anyway DivaVocals. Just one step away now!

I just realized the 404 error I'm getting isn't the zencart 404 page, it's the WP 404 page. So that's interesting.

Anyone else have ideas on how to fix the directives?

Adamant Barbell - Home & commercial gym equipment - Since 2007
www.adamantbarbell.com

17 Sep 2013, 12:10 PM
#36
fakedecoy avatar

fakedecoy

Zen Follower

Join Date:
Jul 2006
Posts:
309
Plugin Contributions:
0

Re: Numinix Blog Embedding Issues/Questions

Another thing I noticed is if I change

# Do rewrite blog directory
RewriteRule ^blog(.*)$ index.php?main_page=blog&$1 [E=VAR1:$1,QSA,L]

to

# Do rewrite blog directory but not wp directory
RewriteCond %{REQUEST_URI} !^/blog-backend [NC]
RewriteRule ^blog(.*)$ index.php?main_page=blog&$1 [E=VAR1:$1,QSA,L]

then the blog displays and /blog-backend is also accessible, but the styles the blog uses isn't just from blog.css (that file appears to be loaded too, from the displayed page's source code), it's from the active WP theme css. Maybe that's a good sign, ie: it was able to access the WP directory fine, but for some reason is loading the WP theme css?

Adamant Barbell - Home & commercial gym equipment - Since 2007
www.adamantbarbell.com

17 Sep 2013, 12:30 PM
#37
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Numinix Blog Embedding Issues/Questions

fakeDecoy:

Another thing I noticed is if I change

Do rewrite blog directory

RewriteRule ^blog(.*)$ index.php?main_page=blog&$1 [E=VAR1:$1,QSA,L]

> 
> to
> ```
# Do rewrite blog directory but not wp directory
RewriteCond %{REQUEST_URI} !^/blog-backend [NC]
RewriteRule ^blog(.*)$ index.php?main_page=blog&$1 [E=VAR1:$1,QSA,L]

then the blog displays and /blog-backend is also accessible, but the styles the blog uses isn't just from blog.css (that file appears to be loaded too, from the displayed page's source code), it's from the active WP theme css. Maybe that's a good sign, ie: it was able to access the WP directory fine, but for some reason is loading the WP theme css?Well not for nothing, but it seems like that's the solution.. So change those directives.. Backup (just in case) and DELETE the blog.css stylesheet, and apply your custom changes to the WP theme stylesheet..

What does your FULL .htaccess file look like??

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

17 Sep 2013, 12:38 PM
#38
fakedecoy avatar

fakedecoy

Zen Follower

Join Date:
Jul 2006
Posts:
309
Plugin Contributions:
0

Re: Numinix Blog Embedding Issues/Questions

I did something similar - commented out the @import command from the WP child theme css so it's essentially blank. Everything seems to work!

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 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 but not wp directory
RewriteCond %{REQUEST_URI} !^/blog-backend [NC]
RewriteRule ^blog(.*)$ index.php?main_page=blog&$1 [E=VAR1:$1,QSA,L]

I feel like I could have done this with one less directive by modifying and moving the last two to before the "all other URIs" directive, but hey, it works.

Adamant Barbell - Home & commercial gym equipment - Since 2007
www.adamantbarbell.com

17 Sep 2013, 12:43 PM
#39
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Numinix Blog Embedding Issues/Questions

fakeDecoy:

I did something similar - commented out the @import command from the WP child theme css so it's essentially blank. Everything seems to work!

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 blog directory

RewriteCond %{REQUEST_URI} !^/blog [NC]
[B]RewriteCond %{REQUEST_URI} !^/blog-backend [NC][/B]

Handle all other URIs using Zen Cart (index.php)

RewriteRule .* index.php?%{QUERY_STRING} [L]

Do rewrite blog directory but not wp directory

RewriteCond %{REQUEST_URI} !^/blog-backend [NC]
RewriteRule ^blog(.*)$ index.php?main_page=blog&$1 [E=VAR1:$1,QSA,L]

> 
> I feel like I could have done this with one less directive by modifying and moving the last two to before the "all other URIs" directive, but hey, it works.
No no no.. You will lose your changes if there is an update to the parent theme.. (that's WHY you create a child theme)

Restore the parent theme stylesheet back to the default.. Yes, remove the @import statement from the child theme stylesheet, but try putting your adjusted stylesheet declarations in the child theme stylesheet..

Also remove out the directive highlighted in red.. you don't need it declared TWICE..

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

17 Sep 2013, 12:53 PM
#40
fakedecoy avatar

fakedecoy

Zen Follower

Join Date:
Jul 2006
Posts:
309
Plugin Contributions:
0

Re: Numinix Blog Embedding Issues/Questions

I haven't touched the parent theme stylesheet. But I'll put my styles into the child theme stylesheet and remove the blog.css from zc if that will help avoid problems in the future.

Adamant Barbell - Home & commercial gym equipment - Since 2007
www.adamantbarbell.com