X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   XC SEO v1.1.0 Released (https://forum.x-cart.com/showthread.php?t=25297)

Miniature-Giant 11-24-2006 09:34 AM

Re: XC SEO v1.1.0 Released
 
I noticed that you seem to have the "printable" pages NOT appearing for the robots. Is this to reduce the chances of "duplicate content"?

The printable and non-printable pages are different (printable is missing the nav bars, etc.), any idea how sensitive the spiders are to duplicate content, I mean, I have a lot of reused descriptions of policies, general condition, etc. on each page -- do they only get upset if the pages are truely identical, or if they are just very similar (matching text blocks)?

It would seem that if they only freak on identical pages, then having the extra pages with context matching and keyword matching content (that the printable pages provide) would be a plus. Thoughts?

Thanks,
James

Miniature-Giant 11-25-2006 04:45 AM

Re: XC SEO v1.1.0 Released
 
Well, I set the number of products per page to 1000, that makes all categories appear on only one page, but is a bit messy for users. XML-Sitemaps still can't handle the site -- bogs down to the point of failure.
Trying enarion.net now. I have it set to show me a status every 295 seconds. in its status reports it shows the pages that it is currently working on. Eighteen of them in the last status view were:

Info: Computing http://www.miniature-giant.com/special-edition-Reaper-c-410.html
Info: Computing http://www.miniature-giant.com/special-edition-Reaper-print-c-410.html
Info: Computing http://www.miniature-giant.com/special-edition-Reaper-productcode-down-c-410.html
Info: Computing http://www.miniature-giant.com/special-edition-Reaper-print-productcode-down-c-410.html
Info: Computing http://www.miniature-giant.com/special-edition-Reaper-productcode-up-c-410.html
Info: Computing http://www.miniature-giant.com/special-edition-Reaper-print-productcode-up-c-410.html
Info: Computing http://www.miniature-giant.com/special-edition-Reaper-title-up-c-410.html
Info: Computing http://www.miniature-giant.com/special-edition-Reaper-print-title-up-c-410.html
Info: Computing http://www.miniature-giant.com/special-edition-Reaper-title-down-c-410.html
Info: Computing http://www.miniature-giant.com/special-edition-Reaper-print-title-down-c-410.html
Info: Computing http://www.miniature-giant.com/special-edition-Reaper-price-down-c-410.html
Info: Computing http://www.miniature-giant.com/special-edition-Reaper-print-price-down-c-410.html
Info: Computing http://www.miniature-giant.com/special-edition-Reaper-price-up-c-410.html
Info: Computing http://www.miniature-giant.com/special-edition-Reaper-print-price-up-c-410.html
Info: Computing http://www.miniature-giant.com/special-edition-Reaper-orderby-up-c-410.html
Info: Computing http://www.miniature-giant.com/special-edition-Reaper-print-orderby-up-c-410.html
Info: Computing http://www.miniature-giant.com/special-edition-Reaper-orderby-down-c-410.html
Info: Computing http://www.miniature-giant.com/special-edition-Reaper-print-orderby-down-c-410.html

I am only aware of one link to this category (#410). Any idea where all of these other ones could be coming from? Is this a problem with enarion and I should just try another sitemap generator? Do you think that I might have a real problem with the way that the XC SEO mod is operating, or does this sound reasonable to you?

Thanks for any advice or assurances.
James

Jerrad 11-25-2006 04:58 AM

Re: XC SEO v1.1.0 Released
 
Try this sitemap generator: http://gsitecrawler.com

Works great for me with the XC SEO mod!

intel352 11-27-2006 05:23 AM

Re: XC SEO v1.1.0 Released
 
MiniG, the reason those "bots" that you employed did not see the website as a search engine, is because what determines a search engine in x-cart is the bots.php file, and the bots.php file apparently doesn't list the user agents that those search engines reported.

What that means is, while google reports itself as GoogleBot, and is detected properly by X-Cart, other lesser-known search engines won't be detected because X-Cart doesn't know of their existence.

So, as Jerrad mentioned, something like gsitecrawler would work, assuming that it identifies itself as a Googlebot

gastu 11-27-2006 06:13 AM

Re: XC SEO v1.1.0 Released
 
problems..
i install all sql and change all files and not work.

Not Found

The requested document was not found on this server.

intel352 11-27-2006 09:32 AM

Re: XC SEO v1.1.0 Released
 
yes, again, this problem is due to either you not incorporating the needed changes into your .htaccess file, OR your server does not support mod_rewrite.

Please show us the content of your existing .htaccess file so we can verify that you modified it correctly.

gastu 11-27-2006 10:09 AM

Re: XC SEO v1.1.0 Released
 
site work with rewrite.

.htaccess
Code:

DirectoryIndex home.php
RewriteEngine On
RewriteCond %{HTTP_HOST} ^oficlip.cl$
RewriteRule ^(.*)$ http://www.oficlip.cl/$1 [R=301,L]

#####
# The following rules should be added
# to the TOP of your existing .htaccess file
# to prevent malicious users/bots from accessing
# x-cart files that aren't meant to be public.
#####

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

# block all .log (log files), .sql (sql dump/export) and .conf (config files) files
# in case some day these files move to another directory
RedirectMatch gone ^.*\.(sql|log|conf)$

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

# block common X-Cart files that could reveal
# that you have X-Cart installed
RedirectMatch gone VERSION.*
RedirectMatch gone COPYRIGHT.*
RedirectMatch gone INSTALL.*
RedirectMatch gone NEW.*
RedirectMatch gone README.*
RedirectMatch gone UPGRADE.*

# 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

# block access to the pgp directories
Redirect gone /tmp
Redirect gone /var


intel352 11-27-2006 04:04 PM

Re: XC SEO v1.1.0 Released
 
Yep, that's the problem, you didn't modify your .htaccess file... Look at the files that you downloaded, there is a .htaccess file, please copy the contents of that .htaccess file into your existing .htaccess file.

gastu 11-27-2006 04:56 PM

Re: XC SEO v1.1.0 Released
 
already paste my .htaccess and have your secure.htaccess
now what :s

gastu 11-27-2006 05:11 PM

Re: XC SEO v1.1.0 Released
 
.htaccess hide in different OS.
in my case i use macosx and not view .htaccess.

Code:

Options +FollowSymLinks
RewriteEngine On

# Some servers require the Rewritebase directive to be
# enabled (remove '#' at the beginning to activate)
# Please note: when enabled, you must include the path
# to your root xcart folder (i.e. RewriteBase /shop)
#RewriteBase /

# Enable the following 3 lines if you want to make sure
# all users use the www. version of your domain.
# Helps prevent cookie issues for some X-Cart installations
#RewriteCond %{HTTPS} off
#RewriteCond %{HTTP_HOST} ^YOURDOMAIN.com [NC]
#RewriteRule ^(.*)$ http://www.YOURDOMAIN.com/$1 [R=301,L]

##### XC SEO Lite
# Rewrite SEO category URL's
RewriteRule ^([^/]*/)?[^/]+-print-(productcode|title|price|orderby)-up-c-([0-9]+)-p-([0-9]+)\.html$        $1home.php?printable=Y&sort=$2&sort_direction=0&cat=$3&page=$4                [QSA,L]
RewriteRule ^([^/]*/)?[^/]+-print-(productcode|title|price|orderby)-down-c-([0-9]+)-p-([0-9]+)\.html$        $1home.php?printable=Y&sort=$2&sort_direction=1&cat=$3&page=$4                [QSA,L]
RewriteRule ^([^/]*/)?[^/]+-print-c-([0-9]+)-p-([0-9]+)\.html$                                                                                                $1home.php?printable=Y&cat=$2&page=$3                [QSA,L]
RewriteRule ^([^/]*/)?[^/]+-(productcode|title|price|orderby)-up-c-([0-9]+)-p-([0-9]+)\.html$                $1home.php?sort=$2&sort_direction=0&cat=$3&page=$4                [QSA,L]
RewriteRule ^([^/]*/)?[^/]+-(productcode|title|price|orderby)-down-c-([0-9]+)-p-([0-9]+)\.html$                $1home.php?sort=$2&sort_direction=1&cat=$3&page=$4                [QSA,L]
RewriteRule ^([^/]*/)?[^/]+-c-([0-9]+)-p-([0-9]+)\.html$                                                                                                        $1home.php?cat=$2&page=$3                [QSA,L]
RewriteRule ^([^/]*/)?[^/]+-print-(productcode|title|price|orderby)-up-c-([0-9]+)\.html$                                $1home.php?printable=Y&sort=$2&sort_direction=0&cat=$3                                [QSA,L]
RewriteRule ^([^/]*/)?[^/]+-print-(productcode|title|price|orderby)-down-c-([0-9]+)\.html$                                $1home.php?printable=Y&sort=$2&sort_direction=1&cat=$3                                [QSA,L]
RewriteRule ^([^/]*/)?[^/]+-print-c-([0-9]+)\.html$                                                                                                                        $1home.php?printable=Y&cat=$2                                [QSA,L]
RewriteRule ^([^/]*/)?[^/]+-(productcode|title|price|orderby)-up-c-([0-9]+)\.html$                                        $1home.php?sort=$2&sort_direction=0&cat=$3                                [QSA,L]
RewriteRule ^([^/]*/)?[^/]+-(productcode|title|price|orderby)-down-c-([0-9]+)\.html$                                        $1home.php?sort=$2&sort_direction=1&cat=$3                                [QSA,L]
RewriteRule ^([^/]*/)?[^/]+-c-([0-9]+)\.html$                                                                                                                                $1home.php?cat=$2                                [QSA,L]

# Rewrite SEO manufacturers URL's
RewriteRule ^([^/]*/)?[^/]+-print-(productcode|title|price|orderby)-up-m-([0-9]+)-p-([0-9]+)\.html$        $1manufacturers.php?printable=Y&sort=$2&sort_direction=0&manufacturerid=$3&page=$4        [QSA,L]
RewriteRule ^([^/]*/)?[^/]+-print-(productcode|title|price|orderby)-down-m-([0-9]+)-p-([0-9]+)\.html$        $1manufacturers.php?printable=Y&sort=$2&sort_direction=1&manufacturerid=$3&page=$4        [QSA,L]
RewriteRule ^([^/]*/)?[^/]+-print-m-([0-9]+)-p-([0-9]+)\.html$        $1manufacturers.php?printable=Y&manufacturerid=$2&page=$3        [QSA,L]
RewriteRule ^([^/]*/)?[^/]+-(productcode|title|price|orderby)-up-m-([0-9]+)-p-([0-9]+)\.html$        $1manufacturers.php?sort=$2&sort_direction=0&manufacturerid=$3&page=$4        [QSA,L]
RewriteRule ^([^/]*/)?[^/]+-(productcode|title|price|orderby)-down-m-([0-9]+)-p-([0-9]+)\.html$        $1manufacturers.php?sort=$2&sort_direction=1&manufacturerid=$3&page=$4        [QSA,L]
RewriteRule ^([^/]*/)?[^/]+-m-([0-9]+)-p-([0-9]+)\.html$                $1manufacturers.php?manufacturerid=$2&page=$3        [QSA,L]
RewriteRule ^([^/]*/)?[^/]+-print-(productcode|title|price|orderby)-up-m-([0-9]+)\.html$        $1manufacturers.php?printable=Y&sort=$2&sort_direction=0&manufacturerid=$3        [QSA,L]
RewriteRule ^([^/]*/)?[^/]+-print-(productcode|title|price|orderby)-down-m-([0-9]+)\.html$        $1manufacturers.php?printable=Y&sort=$2&sort_direction=1&manufacturerid=$3        [QSA,L]
RewriteRule ^([^/]*/)?[^/]+-print-m-([0-9]+)\.html$                                $1manufacturers.php?printable=Y&manufacturerid=$2                        [QSA,L]
RewriteRule ^([^/]*/)?[^/]+-(productcode|title|price|orderby)-up-m-([0-9]+)\.html$        $1manufacturers.php?sort=$2&sort_direction=0&manufacturerid=$3        [QSA,L]
RewriteRule ^([^/]*/)?[^/]+-(productcode|title|price|orderby)-down-m-([0-9]+)\.html$        $1manufacturers.php?sort=$2&sort_direction=1&manufacturerid=$3        [QSA,L]
RewriteRule ^([^/]*/)?[^/]+-m-([0-9]+)\.html$                                        $1manufacturers.php?manufacturerid=$2                        [QSA,L]

# Rewrite SEO product URL's
RewriteRule ^([^/]*/)?[^/]+-print-c-([0-9]+)-p-([0-9]+)-pr-([0-9]+)\.html$                $1product.php?printable=Y&productid=$4&cat=$2&page=$3                                                [QSA,L]
RewriteRule ^([^/]*/)?[^/]+-c-([0-9]+)-p-([0-9]+)-pr-([0-9]+)\.html$                        $1product.php?productid=$4&cat=$2&page=$3                                                [QSA,L]
RewriteRule ^([^/]*/)?[^/]+-print-pr-([0-9]+)\.html$                                                        $1product.php?printable=Y&productid=$2                                                [QSA,L]
RewriteRule ^([^/]*/)?[^/]+-pr-([0-9]+)\.html$                                                                        $1product.php?productid=$2                                                [QSA,L]

# Rewrite SEO static page URL's
RewriteRule ^([^/]*/)?[^/]+-print-pg-([0-9]+)\.html$        $1pages.php?printable=Y&pageid=$2                                                [QSA,L]
RewriteRule ^([^/]*/)?[^/]+-pg-([0-9]+)\.html$                        $1pages.php?pageid=$2                                                [QSA,L]

# Rewrite SEO search URL's
RewriteRule ^([^/]*/)?([^/]+)-search-c-([0-9]+)(-[^-]+)*\.html$        $1search.php?mode=search&substring=$2&cat=$3                [QSA,L]
RewriteRule ^([^/]*/)?([^/]+)-search(-[^-]+)*\.html$        $1search.php?mode=search&substring=$2                [QSA,L]
##### / XC SEO Lite


intel352 11-28-2006 03:48 AM

Re: XC SEO v1.1.0 Released
 
There you go, that's what you needed. Sorry about OSX, wasn't aware of that.

badtexas 11-28-2006 11:11 PM

Re: XC SEO v1.1.0 Released
 
Hi intel352. Do you have any of the Rewriterules for Zeus web servers? My host does not run Apache, and while they are normally happy to add a few entries here and there, they cannot convert the .htaccess file for me. I do not have enough experience to even consider starting the task myself.
Jason
__________
X-Cart Gold 4.1.3
www.toyswillbetoys.com.au

Miniature-Giant 11-29-2006 04:48 AM

Re: XC SEO v1.1.0 Released
 
Thanks Jerrad,
gsitecrawler worked like a charm (8543 unique pages found and mapped) -- wish I had known about it a week earlier!

Unlike all the other sitemap generators that I tried, gsitecrawler worked with xcart and this mod -- and it was FAST and FREE -- great combo!

Anyone have idea how long after submitting to google/yahoo before they reevaluate a site?
James

intel352 11-29-2006 06:38 AM

Re: XC SEO v1.1.0 Released
 
Jason, I've never worked with Zeus. Does Zeus support rewriting? If it does, I can look into a solution for you. PM me with any details that you can, and I'd likely need to test on your hosting account, since I have no other testbed for Zeus.


MG, it'll take 2 weeks to 1 month before you see a change in google search results. Dunno about yahoo.

Good to hear gsitecrawler worked well :-D

Bling 12-13-2006 06:06 PM

Re: XC SEO v1.1.0 Released
 
I think im going crazy. Can someone pppllleeas show me exactly where the install instructions are for this mod, cus I have had enough. Im sure it is right in fron of me. I tried the bit of info in the first post but no luck,...gotta be somthin im missin.

thanks for the contribution!

cconway 12-14-2006 01:28 PM

Re: XC SEO v1.1.0 Released
 
Quote:

Originally Posted by Bling
I think im going crazy. Can someone pppllleeas show me exactly where the install instructions are for this mod, cus I have had enough. Im sure it is right in fron of me. I tried the bit of info in the first post but no luck,...gotta be somthin im missin.

thanks for the contribution!


It's in the folder "x-cart-seo docs". Open any of the "INSTALL 4.X.X" files that's relevant to you.

Sahani 12-30-2006 05:45 AM

Re: XC SEO v1.1.0 Released
 
Hi,
I installed XC SEO a while ago and I am not sure which version I have installed onto my site www.sahanishop.com. Is there a way I can tell which version I have install so that I know what to upgrade to get to 1.1.5?

Thanks !!!

bebekisses.com 01-08-2007 12:18 PM

Re: XC SEO v1.1.0 Released
 
This is neat. I'm looking forward to testing this in my dev lab.

bebekisses.com 01-18-2007 05:52 AM

Re: XC SEO v1.1.0 Released
 
tested this and i'm disappointed in my host. Seems that mod_rewrite doesn't work there. kinda mad. :(

intel352 01-18-2007 03:30 PM

Re: XC SEO v1.1.0 Released
 
what type of server are you hosted on? linux/apache? or windows/iis? or something different?

craven 01-20-2007 10:28 AM

Re: XC SEO v1.1.0 Released
 
Cant seem to get this. When I upload everything and turn it on I get the 500 Internal error. But when I remove the large .htaccess file from the main directory then the site comes up but the links on the pages are displaying the new paths with names but I get page not found whn I click on them?

There are 2 .htaccess files in the download. The larger one in the main diectory and a smaller verion in catalog. Which do you use? When I try the larger one I get errors and when I try the catalog one in the root directory I dont get errors but the new urls dont work?? I'm confused.

bebekisses.com 01-23-2007 09:32 AM

Re: XC SEO v1.1.0 Released
 
Quote:

Originally Posted by intel352
what type of server are you hosted on? linux/apache? or windows/iis? or something different?


using 1and1.com business package:

ifong244 linux (i don't know?)

Output from phpinfo:

SERVER_SOFTWARE Apache/1.3.33 (Unix)

Configure Command '../configure' '--with-pear' '--with-mysql=/usr' '--with-zlib' '--enable-debug=no' '--enable-safe-mode=no' '--enable-discard-path=no' '--with-gd' '--with-png-dir=/usr/lib' '--enable-track-vars' '--with-db' '--with-gdbm' '--enable-force-cgi-redirect' '--with-ttf=/usr/' '--enable-ftp' '--with-mcrypt' '--enable-dbase' '--enable-memory-limit' '--enable-calendar' '--enable-wddx' '--with-jpeg-dir=/usr/src/kundenserver/jpeg-6b' '--enable-bcmath' '--enable-gd-imgstrttf' '--enable-shmop' '--enable-mhash' '--with-mhash=/usr/src/kundenserver/mhash-0.8.9/' '--with-openssl' '--enable-xslt' '--with-xslt-sablot' '--with-dom' '--with-dom-xslt' '--with-dom-exslt' '--with-imap' '--with-curl' '--with-iconv=/usr/local' '--with-freetype-dir=/usr/include/freetype2' '--with-bz2' '--with-gettext' '--enable-exif' '--with-idn' '--enable-mbstring=all'



Server API CGI <--- this one confuses me. eh.

bebekisses.com 01-23-2007 09:33 AM

Re: XC SEO v1.1.0 Released
 
Quote:

Originally Posted by craven
Cant seem to get this. When I upload everything and turn it on I get the 500 Internal error. But when I remove the large .htaccess file from the main directory then the site comes up but the links on the pages are displaying the new paths with names but I get page not found whn I click on them?

There are 2 .htaccess files in the download. The larger one in the main diectory and a smaller verion in catalog. Which do you use? When I try the larger one I get errors and when I try the catalog one in the root directory I dont get errors but the new urls dont work?? I'm confused.


The 500 is because apache doesn't like a directive and is error'ing out.

bebekisses.com 01-23-2007 02:42 PM

Re: XC SEO v1.1.0 Released
 
As far as my problems. i think mod_rewrite is dead on my host. Simple things like rewriting test.php to test.html fails! grr! starting to get angry @ 1and1.com

just wondering 01-27-2007 08:38 AM

Re: XC SEO v1.1.0 Released
 
Anyone else having problems with XC SEO 1.1.5 and the new Version (4.1.6) of X-Cart?

Problems as in Not Found Errors?

Ok, it's stopped working on my PHP4 one, but works fine on my PHP5 one, which is a direct copy...

bebekisses.com 01-27-2007 08:51 AM

Re: XC SEO v1.1.0 Released
 
so you didn't change apache?

just wondering 01-27-2007 08:55 AM

Re: XC SEO v1.1.0 Released
 
So I pardon what eh?

To get PHP5 to work all I had to do, so say my Host, was put a line in the .htaccess.

bebekisses.com 01-27-2007 05:03 PM

Re: XC SEO v1.1.0 Released
 
I'm very happy to report that this works great in dev, apache 2.0, php 4.3.9

Going to compile apache (latest) + php 5x. we'll see what happens.


i'll report on what happened. :)

pteerapr 02-07-2007 06:37 PM

Re: XC SEO v1.1.0 Released
 
in 4.0.18 there is include/func.php. There is no includes/func/func.core.php. I could find the exact code as recommended in the document. I assume that making change to the code according to this recommendation would also help prevent search engines from picking up Sesson IDs when visiting X-Cart.
Wonder if other user of 4018 version do the same.

III. includes/func/func.core.php
===================
RECOMMENDED:
The following change to "func.core.php" is recommended
to help prevent search engines from picking up Sesson IDs
when visiting X-Cart. This *issue* has been reported to X-Cart
devs and will be fixed in the next release of X-Cart (4.1.4).

NOTE: This change is for X-Cart 4.1.x series. Owners of 4.0.x, please
verify if this alteration is needed.

-----------
Find Code:
-----------

if (!empty($XCARTSESSID) && !isset($HTTP_COOKIE_VARS[$XCART_SESSION_NAME]) && !eregi("$XCART_SESSION_NAME=", $location)) {
$location .= ((strpos($location, '?') != false)?'&':'?')."$XCART_SESSION_NAME=".$XCARTSESSI D;
}

------------
Replace With
------------

if (!empty($XCARTSESSID) && !isset($HTTP_COOKIE_VARS[$XCART_SESSION_NAME]) && !eregi("$XCART_SESSION_NAME=", $location) && !defined('IS_ROBOT')) {
$location .= ((strpos($location, '?') != false)?'&':'?')."$XCART_SESSION_NAME=".$XCARTSESSI D;
}

ankki 02-11-2007 08:12 AM

Re: XC SEO v1.1.0 Released
 
Hi,
I use X-cart 4.1.6 and I can not find the piece of code "include $xcart_dir.DIR_CUSTOMER."/referer.php";" in my auth.php file. Anyone have any suggestions?

Thank you,

Ankki

just wondering 02-12-2007 07:19 AM

Re: XC SEO v1.1.0 Released
 
I'm using BCSE's Ad / Banner Mod. The Banners it displays are clickable so I can direct customers to a specific part of my or any other site.

However, if I click on one, I get the following error:
Code:

Warning: parse_url(/shop/ad_banner_click.php?banner_id=16&banner_redirect=http://www.simplywellpriced.co.uk/shop/1-penny-item-one-c-1-p-1-pr-30.html) [function.parse-url]: Unable to parse url in /home/uumlfvno/public_html/shop/modules/XC_SEO/seo.php on line 10
& then takes me to the item.

Any ideas why I get this?

MallRomania 02-23-2007 06:47 AM

Re: XC SEO v1.1.0 Released
 
Hello

Intel352, thank you very much for sharing your work. I have a small question: it is possible to have categories/manufacturers name included in product link, for example: http://www.website.com/category/product.html or http://www.website.com/category/manufacturer/product.html?

Thanks

economedical 02-27-2007 06:51 AM

Re: XC SEO v1.1.0 Released
 
I installed this, followed all the instructions but now it redirects all the products to html pages and gives me a 404 page not found error, any advice?

bebekisses.com 02-27-2007 07:16 AM

Re: XC SEO v1.1.0 Released
 
make sure you place your .htaccess file dude.

economedical 02-27-2007 05:00 PM

Re: XC SEO v1.1.0 Released
 
OK here is the .htaccess file that I added the two blocks of text to from the package. My store is in the root, my .htaccess is in the root.
Code:

DirectoryIndex index.html index.php

#####
# The following rules should be added
# to the TOP of your existing .htaccess file
# to prevent malicious users/bots from accessing
# x-cart files that aren't meant to be public.
#####

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

# block all .log (log files), .sql (sql dump/export) and .conf (config files) files
# in case some day these files move to another directory
RedirectMatch gone ^.*\.(sql|log|conf)$

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

# block common X-Cart files that could reveal
# that you have X-Cart installed
RedirectMatch gone VERSION.*
RedirectMatch gone COPYRIGHT.*
RedirectMatch gone INSTALL.*
RedirectMatch gone NEW.*
RedirectMatch gone README.*
RedirectMatch gone UPGRADE.*

# 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

# block access to the pgp directories
Redirect gone /tmp
Redirect gone /var

Options +FollowSymLinks

# Some servers require the Rewritebase directive to be
# enabled (remove '#' at the beginning to activate)
# Please note: when enabled, you must include the path
# to your root xcart folder (i.e. RewriteBase /shop)
#RewriteBase /

# Enable the following 3 lines if you want to make sure
# all users use the www. version of your domain.
# Helps prevent cookie issues for some X-Cart installations
# RewriteCond %{HTTPS} off
# RewriteCond %{HTTP_HOST} ^YOURDOMAIN.com [NC]
# RewriteRule ^(.*)$ http://www.YOURDOMAIN.com/$1 [R=301,L]

##### XC SEO Lite
# Rewrite SEO category URL's

# Rewrite SEO manufacturers URL's

# Rewrite SEO product URL's

# Rewrite SEO static page URL's

# Rewrite SEO search URL's
##### / XC SEO Lite


RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://economedical.com.au/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://economedical.com.au$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.economedical.com.au/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.economedical.com.au$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.rgmedicalnsw.com.au/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.rgmedicalnsw.com.au$      [NC]
RewriteRule .*\.([^/]*/[^/]*/[^/]*/[^/]*/[^/]*/[^/]*/[^/]*/[^/]*/[^/]*/[^/]*/[^/]*/[^/]*/[^/]*/[^/]*/[^/]*/[^/]*/[^/]*/[^/]*/[^/]*/[^/]*/[^/]*/[^/]*/[^/]*/[^/]*/[^/]*/[^/]*/[^/]*/[^/]*/[^/]*/[^/]*/[^/]*/[^/]*/)$ - [F,NC]


bebekisses.com 02-27-2007 05:16 PM

Re: XC SEO v1.1.0 Released
 
uncomment: RewriteBase /

I had to do that to get rid of the 404's :(

bebekisses.com 02-27-2007 05:19 PM

Re: XC SEO v1.1.0 Released
 
Just noticed the redirect gone's. I'm using this!! :)
#####
# The following rules should be added
# to the TOP of your existing .htaccess file
# to prevent malicious users/bots from accessing
# x-cart files that aren't meant to be public.
#####

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

# block all .log (log files), .sql (sql dump/export) and .conf (config files) files
# in case some day these files move to another directory
RedirectMatch gone ^.*\.(sql|log|conf)$

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

# block common X-Cart files that could reveal
# that you have X-Cart installed
RedirectMatch gone VERSION.*
RedirectMatch gone COPYRIGHT.*
RedirectMatch gone INSTALL.*
RedirectMatch gone NEW.*
RedirectMatch gone README.*
RedirectMatch gone UPGRADE.*

# 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

# block access to the pgp directories
Redirect gone /tmp
Redirect gone /var

economedical 02-27-2007 05:28 PM

Re: XC SEO v1.1.0 Released
 
I have tried with and without the commented rewritebase but same both ways, which is why i thought it must be some sub directory thing, but root is root...

Those redirect gones are the same as mine - comparing them side by side in a spreadsheet, they look similar...

Took out the comments and removed these pesky single spaces at end of each line just in case, who knows, still no go.

Code:

DirectoryIndex index.html index.php

#####
# The following rules should be added
# to the TOP of your existing .htaccess file
# to prevent malicious users/bots from accessing
# x-cart files that aren't meant to be public.
#####

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

# block all .log (log files), .sql (sql dump/export) and .conf (config files) files
# in case some day these files move to another directory
RedirectMatch gone ^.*\.(sql|log|conf)$

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

# block common X-Cart files that could reveal
# that you have X-Cart installed
RedirectMatch gone VERSION.*
RedirectMatch gone COPYRIGHT.*
RedirectMatch gone INSTALL.*
RedirectMatch gone NEW.*
RedirectMatch gone README.*
RedirectMatch gone UPGRADE.*

# 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

# block access to the pgp directories
Redirect gone /tmp
Redirect gone /var

Options +FollowSymLinks

# Some servers require the Rewritebase directive to be
# enabled (remove '#' at the beginning to activate)
# Please note: when enabled, you must include the path
# to your root xcart folder (i.e. RewriteBase /shop)
RewriteBase /

# Enable the following 3 lines if you want to make sure
# all users use the www. version of your domain.
# Helps prevent cookie issues for some X-Cart installations
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} ^economedical.com.au [NC]
RewriteRule ^(.*)$ http://www.economedical.com.au/$1 [R=301,L]

##### XC SEO Lite
# Rewrite SEO category URL's

# Rewrite SEO manufacturers URL's

# Rewrite SEO product URL's

# Rewrite SEO static page URL's

# Rewrite SEO search URL's
##### / XC SEO Lite


RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://economedical.com.au/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://economedical.com.au$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.economedical.com.au/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.economedical.com.au$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.rgmedicalnsw.com.au/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.rgmedicalnsw.com.au$      [NC]
RewriteRule .*\.([^/]*/[^/]*/[^/]*/[^/]*/[^/]*/[^/]*/[^/]*/[^/]*/[^/]*/[^/]*/[^/]*/[^/]*/[^/]*/[^/]*/[^/]*/[^/]*/[^/]*/[^/]*/[^/]*/[^/]*/[^/]*/[^/]*/[^/]*/[^/]*/[^/]*/[^/]*/[^/]*/[^/]*/[^/]*/[^/]*/[^/]*/[^/]*/)$ - [F,NC]

Code:

The webpage cannot be found ***http://www.economedical.com.au/littmann-classic-ii-se-stethoscope-pr-1233.html***
 HTTP 404 
  Most likely causes:
There might be a typing error in the address.
If you clicked on a link, it may be out of date.
 
  What you can try:
    Retype the address. 
 
    Go back to the previous page.
 
    Go to www.economedical.com.au and look for the information you want. 
 
    More information

This error (HTTP 404 Not Found) means that Internet Explorer was able to connect to the website, but the page you wanted was not found. It's possible that the webpage is temporarily unavailable. Alternatively, the website might have changed or removed the webpage.

For more information about HTTP errors, see Help.


bebekisses.com 02-27-2007 05:43 PM

Re: XC SEO v1.1.0 Released
 
I see from your post that the Manufacturer, category rewrite rule are missing.
Code:

options +FollowSymLinks
RewriteEngine On

#####
# The following rules should be added
# to the TOP of your existing .htaccess file
# to prevent malicious users/bots from accessing
# x-cart files that aren't meant to be public.
#####

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

# block all .log (log files), .sql (sql dump/export) and .conf (config files) files
# in case some day these files move to another directory
RedirectMatch gone ^.*\.(sql|log|conf)$

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

# block common X-Cart files that could reveal
# that you have X-Cart installed
RedirectMatch gone VERSION.*
RedirectMatch gone COPYRIGHT.*
RedirectMatch gone INSTALL.*
RedirectMatch gone NEW.*
RedirectMatch gone README.*
RedirectMatch gone UPGRADE.*

# 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

# block access to the pgp directories
Redirect gone /tmp
Redirect gone /var

# Some servers require the Rewritebase directive to be
# enabled (remove '#' at the beginning to activate)
# Please note: when enabled, you must include the path
# to your root xcart folder (i.e. RewriteBase /shop)
RewriteBase /

# Enable the following 3 lines if you want to make sure
# all users use the www. version of your domain.
# Helps prevent cookie issues for some X-Cart installations
#RewriteCond %{HTTPS} off
#RewriteCond %{HTTP_HOST} ^YOURDOMAIN.com [NC]
#RewriteRule ^(.*)$ http://www.YOURDOMAIN.com/$1 [R=301,L]

##### XC SEO Lite
# Rewrite SEO category URL's
RewriteRule ^([^/]*/)?[^/]+-print-(productcode|title|price|orderby)-up-c-([0-9]+)-p-([0-9]+)\.html$    $1home.php?printable=Y&sort=$2&sort_direction=0&cat=$3&page=$4          [QSA,L]
RewriteRule ^([^/]*/)?[^/]+-print-(productcode|title|price|orderby)-down-c-([0-9]+)-p-([0-9]+)\.html$  $1home.php?printable=Y&sort=$2&sort_direction=1&cat=$3&page=$4          [QSA,L]
RewriteRule ^([^/]*/)?[^/]+-print-c-([0-9]+)-p-([0-9]+)\.html$                                                                                          $1home.php?printable=Y&cat=$2&page=$3            [QSA,L]
RewriteRule ^([^/]*/)?[^/]+-(productcode|title|price|orderby)-up-c-([0-9]+)-p-([0-9]+)\.html$          $1home.php?sort=$2&sort_direction=0&cat=$3&page=$4              [QSA,L]
RewriteRule ^([^/]*/)?[^/]+-(productcode|title|price|orderby)-down-c-([0-9]+)-p-([0-9]+)\.html$        $1home.php?sort=$2&sort_direction=1&cat=$3&page=$4              [QSA,L]
RewriteRule ^([^/]*/)?[^/]+-c-([0-9]+)-p-([0-9]+)\.html$                                                                                                        $1home.php?cat=$2&page=$3                [QSA,L]
RewriteRule ^([^/]*/)?[^/]+-print-(productcode|title|price|orderby)-up-c-([0-9]+)\.html$                                $1home.php?printable=Y&sort=$2&sort_direction=0&cat=$3  [QSA,L]
RewriteRule ^([^/]*/)?[^/]+-print-(productcode|title|price|orderby)-down-c-([0-9]+)\.html$                              $1home.php?printable=Y&sort=$2&sort_direction=1&cat=$3  [QSA,L]
RewriteRule ^([^/]*/)?[^/]+-print-c-([0-9]+)\.html$                                                                                                                    $1home.php?printable=Y&cat=$2                            [QSA,L]
RewriteRule ^([^/]*/)?[^/]+-(productcode|title|price|orderby)-up-c-([0-9]+)\.html$                                      $1home.php?sort=$2&sort_direction=0&cat=$3              [QSA,L]
RewriteRule ^([^/]*/)?[^/]+-(productcode|title|price|orderby)-down-c-([0-9]+)\.html$                                    $1home.php?sort=$2&sort_direction=1&cat=$3              [QSA,L]
RewriteRule ^([^/]*/)?[^/]+-c-([0-9]+)\.html$                                                                                                                          $1home.php?cat=$2                                [QSA,L]

# Rewrite SEO manufacturers URL's
RewriteRule ^([^/]*/)?[^/]+-print-(productcode|title|price|orderby)-up-m-([0-9]+)-p-([0-9]+)\.html$    $1manufacturers.php?printable=Y&sort=$2&sort_direction=0&manufacturerid=$3&page=$4      [QSA,L]
RewriteRule ^([^/]*/)?[^/]+-print-(productcode|title|price|orderby)-down-m-([0-9]+)-p-([0-9]+)\.html$  $1manufacturers.php?printable=Y&sort=$2&sort_direction=1&manufacturerid=$3&page=$4      [QSA,L]
RewriteRule ^([^/]*/)?[^/]+-print-m-([0-9]+)-p-([0-9]+)\.html$  $1manufacturers.php?printable=Y&manufacturerid=$2&page=$3      [QSA,L]
RewriteRule ^([^/]*/)?[^/]+-(productcode|title|price|orderby)-up-m-([0-9]+)-p-([0-9]+)\.html$  $1manufacturers.php?sort=$2&sort_direction=0&manufacturerid=$3&page=$4  [QSA,L]
RewriteRule ^([^/]*/)?[^/]+-(productcode|title|price|orderby)-down-m-([0-9]+)-p-([0-9]+)\.html$ $1manufacturers.php?sort=$2&sort_direction=1&manufacturerid=$3&page=$4  [QSA,L]
RewriteRule ^([^/]*/)?[^/]+-m-([0-9]+)-p-([0-9]+)\.html$                $1manufacturers.php?manufacturerid=$2&page=$3  [QSA,L]
RewriteRule ^([^/]*/)?[^/]+-print-(productcode|title|price|orderby)-up-m-([0-9]+)\.html$        $1manufacturers.php?printable=Y&sort=$2&sort_direction=0&manufacturerid=$3      [QSA,L]
RewriteRule ^([^/]*/)?[^/]+-print-(productcode|title|price|orderby)-down-m-([0-9]+)\.html$      $1manufacturers.php?printable=Y&sort=$2&sort_direction=1&manufacturerid=$3      [QSA,L]
RewriteRule ^([^/]*/)?[^/]+-print-m-([0-9]+)\.html$                            $1manufacturers.php?printable=Y&manufacturerid=$2                      [QSA,L]
RewriteRule ^([^/]*/)?[^/]+-(productcode|title|price|orderby)-up-m-([0-9]+)\.html$      $1manufacturers.php?sort=$2&sort_direction=0&manufacturerid=$3  [QSA,L]
RewriteRule ^([^/]*/)?[^/]+-(productcode|title|price|orderby)-down-m-([0-9]+)\.html$    $1manufacturers.php?sort=$2&sort_direction=1&manufacturerid=$3  [QSA,L]
RewriteRule ^([^/]*/)?[^/]+-m-([0-9]+)\.html$                                  $1manufacturers.php?manufacturerid=$2                  [QSA,L]

# Rewrite SEO product URL's
RewriteRule ^([^/]*/)?[^/]+-print-c-([0-9]+)-p-([0-9]+)-pr-([0-9]+)\.html$              $1product.php?printable=Y&productid=$4&cat=$2&page=$3                                  [QSA,L]
RewriteRule ^([^/]*/)?[^/]+-c-([0-9]+)-p-([0-9]+)-pr-([0-9]+)\.html$                    $1product.php?productid=$4&cat=$2&page=$3                                              [QSA,L]
RewriteRule ^([^/]*/)?[^/]+-print-pr-([0-9]+)\.html$                                                    $1product.php?printable=Y&productid=$2                                  [QSA,L]
RewriteRule ^([^/]*/)?[^/]+-pr-([0-9]+)\.html$                                                                  $1product.php?productid=$2                                      [QSA,L]

# Rewrite SEO static page URL's
RewriteRule ^([^/]*/)?[^/]+-print-pg-([0-9]+)\.html$    $1pages.php?printable=Y&pageid=$2                                              [QSA,L]
RewriteRule ^([^/]*/)?[^/]+-pg-([0-9]+)\.html$                  $1pages.php?pageid=$2                                          [QSA,L]

# Rewrite SEO search URL's
RewriteRule ^([^/]*/)?([^/]+)-search-c-([0-9]+)(-[^-]+)*\.html$ $1search.php?mode=search&substring=$2&cat=$3            [QSA,L]
RewriteRule ^([^/]*/)?([^/]+)-search(-[^-]+)*\.html$    $1search.php?mode=search&substring=$2          [QSA,L]
##### / XC SEO Lite


Try this.

economedical 02-27-2007 08:13 PM

Re: XC SEO v1.1.0 Released
 
That fixed it, those missing rewriterules arent in the .htaccess file in the zip i downloaded, and I am glad you gave em to me cos I would have been bald trying to do it myself. Thanks heaps!


All times are GMT -8. The time now is 06:30 PM.

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