Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
 All Forums
 General
 Search Engines & Marketing
 Struggling with SEO friendly url set-up
Author « Topic »  

BeThe
Starting Member

United Kingdom
11 Posts

Pre-sales questions only
(More Details...)

Posted - 10/19/2017 :  02:35:06  
Hi,
I've think I've fully followed the instructions in the manual to add Search engine friendly URLs , so:
added
<base href="http<?php if(@$_SERVER['HTTPS']=='on') print 's'?>://www.yourstoreurl.com/store/" />
to categories.php and products.php before the closing </head> tag

and added
$seodetailurls=TRUE;
$seocategoryurls=TRUE;
$detlinkspacechar="-";
$seocaturlpattern="/category/%s";
$seoprodurlpattern="/products/%s";
to the vsadmin includes.php and the second named admin folder in includes.php

but not including the
$seourlsthrow301=TRUE;
or the manufacturers line

added
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^category/([^/.]*)/?$ /categories.php?cat=$1 [QSA,nc,L,B] RewriteRule ^products/([^/.]*)/?$ /products.php?cat=$1 [QSA,nc,L,B] RewriteRule ^manufacturer/?$ /categories.php?man=all [QSA,nc,L,B] RewriteRule ^manufacturer/([^/.]*)/?$ /products.php?man=$1 [QSA,nc,L,B] RewriteRule ^([^/.]+)$ proddetail.php?prod=$1 [QSA,nc,L,B] </IfModule>
to the .htaccess in the shop root.

but I get 404's as follows:

Not Found
The requested URL /shop/xxxxx-yyyy-zzzz was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.



to be clear the correct new product url is being looked for but not found.
when I comment out the paramaters in includes.php everything works fine on the normal urls
but have now returned all code to the original code.

Any ideas?
Thanks

Andy
ECT Moderator

95440 Posts

Posted - 10/19/2017 :  03:26:03  
Hi

Couple of quick questions - was it just the detail page that returned a 404 or did the same happen with the product and category pages?

Is your .htacess file exactly as you posted there or do you have any other content and the individual statements on individual lines?

Andy

Please feel free to review / rate our software

BeThe
Starting Member

United Kingdom
11 Posts

Pre-sales questions only
(More Details...)

Posted - 10/19/2017 :  04:28:28  
Hi Andy,

I must have been able to get to a product page from somewhere, but I think that was on a products.php?cat=xx page.
I know there were products/xxxx-yyyy page that were 404 in the same way

the .htaccess has other code.
there are 2 - one at the higher level domain which has the following:

<IfModule mime_module>
AddType application/x-httpd-ea-php70 .php .php7 .phtml
</IfModule>

and one at the shop/ root level that has

AuthName "ecommAR"
AuthUserFile "/home/yourloginID/.htpasswds/public_html/yoururl.com/shop/passwd"

Don't know why there are 2 and whether that is normal or not.

I have just tried again - and tried separately each of the .htaccess files for adding the code - but works with neither - more not accessible whenthe code is placed in at the higher level rather than shop/ root

Thanks

Andy
ECT Moderator

95440 Posts

Posted - 10/19/2017 :  07:23:28  
Sorry, I missed that when you first posted but if you have your store in a sub-directory /store/ the lines will be slightly different ie prefixed by /store - have a look at the helpful post here https://www.ecommercetemplates.com/support/topic.asp?TOPIC_ID=99949

Andy

Please feel free to review / rate our software

BeThe
Starting Member

United Kingdom
11 Posts

Pre-sales questions only
(More Details...)

Posted - 10/20/2017 :  02:50:38  
Hi Andy,
I think between the link you gave me and additional links from that I'll eventually sort this out.
I managed to get the productdetail pages coming up with bespoke urls yesterday when I tried, but was having problems with category and product pages and some images and css styling being dropped, which I noted were referred to on some of the other postings. Some links were calling up the shop directory twice, some not at all.
But need to be able to devote a bit more time to working through this, so will have to drop it for the moment and come back in a couple of weeks when I can block off some time to look at it.
So expect additional queries then!!!
All the best for the mo,
Thanks.
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.03 seconds. Snitz Forums 2000