X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Third Party Add-Ons for X-Cart 4 (https://forum.x-cart.com/forumdisplay.php?f=45)
-   -   CDSEO Pro 2.2.0 not placing friendly urls categories on llist (https://forum.x-cart.com/showthread.php?t=76575)

voodoo1967 10-05-2018 07:18 AM

CDSEO Pro 2.2.0 not placing friendly urls categories on llist
 
Ive just noticed that on the shop main page - the category url's have gone back to https://www.mydomain.com/shop/home.php?cat=1 instead of https://www.mydomain.com/friendlyurl

However the static pages and product pages are displaying friendly url's, for some reason the categories arent - any ideas ? of where to look

elmirage001 10-05-2018 07:58 AM

Re: CDSEO Pro 2.2.0 not placing friendly urls categories on llist
 
We've not experienced this and have been using CDSEO Pro and Jon's previous versions since 2007.

Look in CDSEO Pro General Settings and make sure under Replacement Toggles that Category Replace URLs? is set to yes.

Also what were the last few things you've made changes to. Most of the time I find something going wrong it's be cause I made a change and did something wrong.

voodoo1967 10-05-2018 08:35 AM

Re: CDSEO Pro 2.2.0 not placing friendly urls categories on llist
 
Just checked Toggle settings- all set to 'Yes'

Cant remember the last time I changed anything myself, would there be anything in .htaccess to look at ?

ps I also use Dynamic Website Compressor - it's great isnt it.

elmirage001 10-06-2018 05:27 AM

Re: CDSEO Pro 2.2.0 not placing friendly urls categories on llist
 
Yes it is! :-)

Maybe try this.

Go to Tools-->Maintenance and do

1. Clear templates/X-Cart cache
2. Rebuild category indexes

Hope that helps.

Paul

voodoo1967 10-06-2018 06:31 AM

Re: CDSEO Pro 2.2.0 not placing friendly urls categories on llist
 
Just tried that - but no dice :- still says :-
https://www.mydomain.com/shop/home.php?cat=54
but at least when I follow te link it does go to https://www.mydomain.com/shop/friendlyurl/

The weird thing is that static pages are fine as are product pages - they have friendly urls - it's just the categories that dont :(

my week goes from bad to worse, last week my partner crashed the car (couldnt be repaired), on Monday my partner broke her arm, yesterday I get this xcart / cdseo issue and this morning I get a parking ticket - Ive had better weeks .....

elmirage001 10-06-2018 07:27 AM

Re: CDSEO Pro 2.2.0 not placing friendly urls categories on llist
 
OUCH!! So sorry...

Do you have any rewrites in your .htaccess file affecting categories?

If you want you can PM me the URL of your site and I'll see if my limited abilities might see something.

Paul

voodoo1967 10-06-2018 01:09 PM

Re: CDSEO Pro 2.2.0 not placing friendly urls categories on llist
 
Thank you so much - it works - now lets see how that affects the serps :)

# Uncomment the two lines below to force trailing slashes on folders
RewriteCond %{REQUEST_URI} ^/[^\.]+[^/]$
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1/ [R=301,L]

elmirage001 10-06-2018 01:44 PM

Re: CDSEO Pro 2.2.0 not placing friendly urls categories on llist
 
Quote:

Originally Posted by voodoo1967
Thank you so much - it works - now lets see how that affects the serps :)

# Uncomment the two lines below to force trailing slashes on folders
RewriteCond %{REQUEST_URI} ^/[^\.]+[^/]$
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1/ [R=301,L]


Yay! Glad the change was able to help! :-)

voodoo1967 10-08-2018 01:34 AM

Re: CDSEO Pro 2.2.0 not placing friendly urls categories on llist
 
Just to update - I re checked and this is very strange, Clear the cache, rebuild category index in xcart, then refresh the page - and the url friendly Category links are there domain.com/shop/blue-widgets/ , BUT - refresh the screen the screen and the links revert back to eg - www.domain.com/shop/home.php?cat=27

Ive no idea what is going on :- .htaccess in shop directory :- (this only affects directories - it doesnt affect static pages or product urls)


DirectoryIndex home.php index.php index.html index.htm

RewriteEngine on
RewriteBase /shop/

RewriteCond %{REQUEST_URI} ^/[^\.]+[^/]$
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1/ [R=301,L]


# ------------------------------------
# XC Security
# ------------------------------------

# block all files with uppercase names (i.e. VERSION)
RedirectMatch gone ^/[A-Z].+$

# block all smarty templates (no reason to have these exposed)
RedirectMatch gone ^/.*\.tpl$

# block all .php and .pl files in the root directory except for index.php
RedirectMatch gone ^/[^/]*([^index])\.(php|pl)$

# block the entire log directory
ReDirect gone /log

# block all .log (log files), .sql (sql dump/export) and .conf (config files) files
RedirectMatch gone ^.*\.(sql|log|conf)$

# block access to the 'Smarty-*' directory
RedirectMatch gone ^.*Smarty.*$

# block access to /upgrade
Redirect gone /upgrade

# block access to /skin1_original
Redirect gone /skin1_original

# block access to the /sql directory
Redirect gone /sql

# block access to the /shipping directory
Redirect gone /shipping

# block access to the pgp directories
Redirect gone /.pgp
Redirect gone /.pgp.def

# ------------------------------------
# CDSEO
# ------------------------------------
RewriteCond %{REQUEST_URI} !^/(payment|admin|provider|partner)/
RewriteCond %{REQUEST_FILENAME} !\.(gif|jpe?g|png|js|css|swf|php|ico)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.+)$ /shop/cdseopro.php

# ------------------------------------
# Caching
# ------------------------------------
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access-Indexes plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType text/css "access plus 1 month"
ExpiresByType application/pdf "access plus 1 month"
ExpiresByType text/x-javascript "access plus 1 month"
ExpiresByType application/x-shockwave-flash "access plus 1 month"
ExpiresByType image/x-icon "access plus 1 year"
ExpiresDefault "access plus 2 days"
</IfModule>

BCSE 10-08-2018 11:02 AM

Re: CDSEO Pro 2.2.0 not placing friendly urls categories on llist
 
What recently has changed regarding your site? Php upgrade, server upgrade, something new installed, etc?

Carrie


All times are GMT -8. The time now is 03:05 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.