LynK
Ecommerce Template Expert
Australia
696 Posts Pre-sales questions only (More Details...)
|
Posted - 12/29/2017 : 13:35:49
On your demo page http://ectwp.com/, are you using static URLs? Thanks, Lyn
|
Sinbad
ECT Moderator
USA
65937 Posts |
Posted - 12/29/2017 : 13:55:09
|
LynK
Ecommerce Template Expert
Australia
696 Posts Pre-sales questions only (More Details...)
|
Posted - 12/29/2017 : 14:32:57
Thanks, Marlene. I have set this up on www.kennykreations.com When I click on the product Antique Rose Quilt, I get a blank page: https://www.kennykreations.com/Antique-Rose-Quilt
This is what I have in includes.php // SEO Tweeks $GLOBALS['seodetailurls']=TRUE; $GLOBALS['seocategoryurls']=TRUE; $GLOBALS['seocaturlpattern']='/categories/%s'; $GLOBALS['seoprodurlpattern']='/products/%s'; //$GLOBALS['seourlsthrow301']=TRUE;$GLOBALS['detailnameh1']=TRUE; //$GLOBALS['menucategoriesatroot']=TRUE; $GLOBALS['htmleditor']="ckeditor"; $GLOBALS['usecategoryname']=TRUE; $GLOBALS['usepnamefordetaillinks']=TRUE; $GLOBALS['detlinkspacechar']='-';
This is the htaccess file: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^categories/([^/.]*)/?$ /categories.php?cat=$1 [QSA,nc,L,B] RewriteRule ^products/([^/.]*)/?$ /products.php?cat=$1 [QSA,nc,L,B] RewriteCond %{REQUEST_URI} !/%postname%/ RewriteRule ^([^/.]+)$ proddetail.php?prod=$1 [QSA,nc,L,B] </IfModule>
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>
# END WordPress
Can you see what I have done wrong? Thanks, Lyn
Edited by - LynK on 12/29/2017 15:17:24
|
Sinbad
ECT Moderator
USA
65937 Posts |
Posted - 12/29/2017 : 15:34:35
Lyn, you only need to define the <IfModule mod_rewrite.c> once try it like this: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^categories/([^/.]*)/?$ /categories.php?cat=$1 [QSA,nc,L,B] RewriteRule ^products/([^/.]*)/?$ /products.php?cat=$1 [QSA,nc,L,B] RewriteCond %{REQUEST_URI} !/%postname%/ RewriteRule ^([^/.]+)$ proddetail.php?prod=$1 [QSA,nc,L,B] # BEGIN WordPress RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress Additional instructions https://www.ecommercetemplates.com/seo/search-engine-friendly-urls-php.asp In your WordPress admin under Settings > Permalinks, check which setting you have enabled there. If for example you have chosen “Numeric - http://yourstoreurl.com/archives/123”, make sure you add the following to your .htaccess file RewriteCond %{REQUEST_URI} !/archives/ Just before the line RewriteRule ^([^/.]+)$ proddetail.php?prod=$1 [QSA,nc,L,B] If you are using a custom structure and not /archives/ substitute that for /archives/ in the line above. Winners never quit, quitters never win CSS and Responsive DesignsUser Manual for Ecommerce Templates

|
LynK
Ecommerce Template Expert
Australia
696 Posts Pre-sales questions only (More Details...)
|
Posted - 12/29/2017 : 15:56:16
Thanks, Marlene. I changed the .htaccess file as you advised.
I am still getting blank pages for both products and categories, e.g. https://www.kennykreations.com/Antique-Rose-Quilt Lyn
|
Andy
ECT Moderator
95440 Posts |
Posted - 12/30/2017 : 00:08:49
I just checked the .htaccess file we have on ectwp.com and this is is <IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^category/([^/.]*)/?$ /categories.php?cat=$1 [QSA,nc,L] RewriteRule ^product/([^/.]*)/?$ /products.php?cat=$1 [QSA,nc,L] RewriteRule ^brand/([^/.]*)/?$ /products.php?man=$1 [QSA,nc,L] RewriteRule ^([^/.]+)$ proddetail.php?prod=$1 [QSA,nc,L] </IfModule> # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress and this is what we have in includes.php $GLOBALS['seodetailurls']=TRUE; $GLOBALS['seocategoryurls']=TRUE; $GLOBALS['seocaturlpattern']='/category/%s'; $GLOBALS['seoprodurlpattern']='/product/%s'; $GLOBALS['seomanufacturerpattern']='/brand/%s'; $GLOBALS['detlinkspacechar']='-'; Can you try it like that and let us know? Andy Please feel free to review / rate our software
|
LynK
Ecommerce Template Expert
Australia
696 Posts Pre-sales questions only (More Details...)
|
Posted - 12/30/2017 : 00:59:36
Hi Andy, I used the coding you posted. Still have blank pages for both products and categories - https://www.kennykreations.com/category/Piece-in-the-Hoop Lyn
|
Andy
ECT Moderator
95440 Posts |
Posted - 12/30/2017 : 01:07:23
|
LynK
Ecommerce Template Expert
Australia
696 Posts Pre-sales questions only (More Details...)
|
Posted - 12/30/2017 : 01:12:01
yes
|
Andy
ECT Moderator
95440 Posts |
Posted - 12/30/2017 : 01:19:56
|
LynK
Ecommerce Template Expert
Australia
696 Posts Pre-sales questions only (More Details...)
|
Posted - 12/30/2017 : 01:29:13
Thanks, Andy. I have emailed FTP details, Lyn
|
Andy
ECT Moderator
95440 Posts |
Posted - 12/30/2017 : 02:30:01
It seems to be a conflict in the theme. For example this now works https://www.kennykreations.com/category/Candlewicking but only if I remove these two lines from the categories.php code <?php while (have_posts()) : the_post(); ?> and <?php endwhile; // end of the loop. ?> The problem is though that causes issues with the sub-header on the category pages. So unless I can think of anything else at the moment, it's one or the other. Andy Please feel free to review / rate our software
|
LynK
Ecommerce Template Expert
Australia
696 Posts Pre-sales questions only (More Details...)
|
Posted - 12/30/2017 : 02:47:25
https://www.kennykreations.com/categories.php The problem with the catnavigation that shows on this page is not new. It was the next thing on my list to try to fix. Lyn
|
Andy
ECT Moderator
95440 Posts |
Posted - 12/30/2017 : 02:52:32
What I would do then is remove those two lines from products.php and proddetail.php so the URLs work. For that navigation problem I think I would just turn it off on those three pages via the css file with this in header.php <?php if(strpos($_SERVER['PHP_SELF'],'categories.php')!==FALSE){ ?<style> div.entry-header-inner{display:none !important} </style> <?php } ?> Andy Please feel free to review / rate our software
|
LynK
Ecommerce Template Expert
Australia
696 Posts Pre-sales questions only (More Details...)
|
Posted - 12/30/2017 : 02:55:49
Thanks, Andy. I will do this and see what it looks like. I like the theme, but I would rather have a website that works correctly, so if I have to change themes, it won't be the end of the world. Lyn
|
LynK
Ecommerce Template Expert
Australia
696 Posts Pre-sales questions only (More Details...)
|
Posted - 12/30/2017 : 03:20:43
Andy, I have removed the 2 lines from products and proddetail. If I click on Contact on top menu, it gives a message that this product does not exist; Blog also does something really strange. Don't know where to go from here! Lyn
|
Andy
ECT Moderator
95440 Posts |
Posted - 12/30/2017 : 03:48:42
|
LynK
Ecommerce Template Expert
Australia
696 Posts Pre-sales questions only (More Details...)
|
Posted - 12/30/2017 : 03:54:58
https://www.kennykreations.com/category/blog/ Clearly, there is now a conflict with category/categories
|
Andy
ECT Moderator
95440 Posts |
Posted - 12/30/2017 : 03:57:34
|
LynK
Ecommerce Template Expert
Australia
696 Posts Pre-sales questions only (More Details...)
|
Posted - 12/30/2017 : 04:25:20
Andy, would it be smarter to use static URLs? Lyn
|
Andy
ECT Moderator
95440 Posts |
Posted - 12/30/2017 : 05:05:06
|
|