-
Re: Ceon URI Mapping (SEO)
THanks for the quick reply.
So I gather that the VirtualHost directive is not an htaccess file??
I have never used Apache to do anything with my site.
I will consider moving my site but until then I am keen to try and work this out.
Is VirtualHost part of Apache to your knowledge and how do I access it.
Sorry to be so dense!
Cheers
-
Re: Ceon URI Mapping (SEO)
Hi,
Quote:
Originally Posted by
thevagr1
So I gather that the VirtualHost directive is not an htaccess file??
No, it is the bit of code in your Apache .conf file(s) which sets up the hosting settings for a site.
Quote:
Originally Posted by
thevagr1
I have never used Apache to do anything with my site.
I will consider moving my site but until then I am keen to try and work this out.
Is VirtualHost part of Apache to your knowledge and how do I access it.
To change the contents of a VirtualHost directive you have to edit the .conf file for Apache. You have two options.. you can either edit that file and enable .htaccess support in it or you can edit it and add the rewrite rule directly in your site's VirtualHost directive.
I realise that you are just learning and am glad to see your enthusiasm for trying things out yourself but I hope you can understand that I can't provide you with any further support on this issue as this thread is about getting the URI Mapping module to work and it isn't appropriate to teach the workings of the Apache webserver here.
If you're still having problems then please search the internet for a guide to Apache or start a new thread with some specific questions on configuring Apache and hopefully you'll get the information you need!
(Or, as I said, simply move hosts if your hoset doesn't let you configure Apache as desired).
All the best..
Conor
ceon
-
Re: Ceon URI Mapping (SEO)
Thanks for the quick reply Conor.
I am thinking of moving hosts but cant do it right away.
So I gather that htaccess files are different to VirtualHost.
Are able to put me in in the right direction as to How to edit this and re-write it?? I have never used Apache so am not sure what to do or where to start.
Also do I need to change every htaccess file or just the one in the root folder?
Thanks so much
-
Re: Ceon URI Mapping (SEO)
Sorry about the double up !!!!! Cancel that one
-
Re: Ceon URI Mapping (SEO)
Hi,
Quote:
Originally Posted by
thevagr1
Also do I need to change every htaccess file or just the one in the root folder?
If you can access it, just the one in the root folder. Its "directives" will then apply for all subdirectories.
All the best..
Conor
ceon
-
Re: Ceon URI Mapping (SEO)
I am getting some pages indexed twice, one with just the mapped URL and then the other is the same URL but with stuff like "?&page=1&sort=2d" at the end? This was brought to my attention from google webmaster tools. Also getting some duplicate meta titles and description but not sure if that is related to this module.
-
Re: Ceon URI Mapping (SEO)
Hi,
Quote:
Originally Posted by
whatisthat456
I am getting some pages indexed twice, one with just the mapped URL and then the other is the same URL but with stuff like "?&page=1&sort=2d" at the end?
They are sorting/paging parameters added by Zen Carrt. They are necessary and cannot be avoided. You have to just ignore the fact that they are used. Search engines know that sites use multiple pages and should deal with it.
Quote:
Originally Posted by
whatisthat456
This was brought to my attention from google webmaster tools. Also getting some duplicate meta titles and description but not sure if that is related to this module.
That's not something the module deals with so I'm afraid youy'll have to look elsewhere for a solution to that problem!
All the best..
Conor
ceon
-
Re: Ceon URI Mapping (SEO)
just installed URI_mapping 3.2.4 and I get an error when I try to use the module.
Warning: main(/home/shastabc/public_html/store/includes/extra_datafiles/ceon_uri_mapping_config.php) [function.main]: failed to open stream: No such file or directory in /home/shastabc/public_html/store/316BackDoor/ceon_uri_mapping_config.php on line 31
Fatal error: main() [function.require]: Failed opening required '/home/shastabc/public_html/store/includes/extra_datafiles/ceon_uri_mapping_config.php' (include_path='.:/usr/php4/lib/php:/usr/local/php4/lib/php') in /home/shastabc/public_html/store/316BackDoor/ceon_uri_mapping_config.php on line 31
I am using Zen Cart 1.3.8a upgrade from 1.7
the only add on's I'm using are, google base feeder Config & Products & Attributes Stock
Probably something simple, as I'm a not much of a programmer.
http://shastabasecamp.com/store/
thanx, iaN
-
Re: Ceon URI Mapping (SEO)
Hi,
Quote:
Originally Posted by
alpineaddict
Warning: main(/home/shastabc/public_html/store/includes/extra_datafiles/ceon_uri_mapping_config.php)
You haven't uploaded all the files.
At least one, includes/extra_datafile/ceon_uri_mapping_config.php is missing..
Follow the installation instructions from the start again and hopefully you'll get it right this time!
All the best...
Conor
ceon
-
Re: Ceon URI Mapping (SEO)
Yikes!!! Checked installation it looked complete, reinstalled anyway and now I,m unable to get into admin,
Fatal error: Call to undefined function: zen_catalog_href_link() in /home/shastabc/public_html/store/316BackDoor/includes/header.php on line 230
checked header.php file it appears to be intact and unchanged from the installation date.
Thanks for you reply but, what next?
-
Re: Ceon URI Mapping (SEO)
Hi,
Quote:
Originally Posted by
alpineaddict
Fatal error: Call to undefined function: zen_catalog_href_link() in /home/shastabc/public_html/store/316BackDoor/includes/header.php on line 230
You seem to have uploaded the wrong version of includes/functions/html_output.php or uploaded it to the "wrong" directory - I'm afraid I must warn you to be more careful in future!
Remember there are two directories which have a file of that name:
admin/includes/functions/html_output.php
includes/functions/html_output.php
You should copy the original files across from a fresh installation of Zen Cart then copy across any modifications you need for the other modules you have installed, using software such as Beyond Compare or WinMerge, before finally copying across the modifications you need for URI Mapping.
If you are uncertain about what any of that means then you should probably pay someone else to do this for you.
Hope that helps!
All the best...
Conor
ceon
-
Re: Ceon URI Mapping (SEO)
Hi,
Just to start - great mod and very easy to install! Cheers.
I have a problem (I think??) - Install was fine and everything is working. However occasionally when I load a link via google (normally shopping links) that point to my store they seem to go to the wrong product. They normally land on this page
http://www.aworldofpets.co.uk/shop/c...ns-with-catnip
However the URL is for the correct product but shows the chirping bird page!
Is this just my computer or does it happen when others click the links too?
http://www.google.co.uk/products?q=a...ts.co.uk&hl=en
Cheers!
Tim.
-
Re: Ceon URI Mapping (SEO)
Hi Tim,
Glad you like the software!
Quote:
Originally Posted by
aworldofpets.co.uk
Is this just my computer or does it happen when others click the links too?.
I can't think of any reason that would happen other than caching in your browser?
I've never used that Google Products thing before, but when I went to it and clicked on all of the links on its first page to products on your site they all went to the products described, as expected!
Things don't happen randomly in computing so if you have this happen again please record all the details you can about it (what URL is shown in google and what URL I goes to [I assume the one you just posted]) and post back here and maybe we can find the source of the problem. As it is everything appears fine!
All the best..
Conor
ceon
-
Re: Ceon URI Mapping (SEO)
Hi Conor,
Thanks for the prompt reply. It seems fine today! I did test it on the wifes computer yesterday too and the same occurred.
I will keep a close eye on it and update if needed! :]
Cheers again,
Tim.
-
Re: Ceon URI Mapping (SEO)
Hi Conner,
Anything recent on the URI Mappings Manager ? I was just explaining to someone how your product beats the other versions, including the paid ones. The only pain is having to go and "touch" each product to auto-gen the URI.
I asked Magnetic One if they wouldn't mind integrating the URI generation and they promptly reminded me that they have a competing product. :)
Kind regards,
Bil Herd
-
1 Attachment(s)
Re: Ceon URI Mapping (SEO)
Quote:
Originally Posted by
globalmemory
Hello Conor,
I think there might be a bug with the URI mapping as i am getting the following error when i click on the preview description link in the categories section in admin?
Fatal error: Call to a member function MoveNext() on a non-object in /home/globalm6/public_html/gmadmin/includes/modules/product/preview_info.php on line 98 :unsure:
I was able to reproduce the error globablmemory described in his post on a clean install of Zencart 1.38a. The "preview link" he's talking about that's throwing the error isn't the preview button, but the preview icon on the admin categories page. I'm attaching an image with the icon links highlighted to avoid confusion.
Of course, it's a very minor issue, as I doubt many use those preview links. I hadn't really noticed they were separate links until I clicked one accidentally.
Love the software. Very easy to install.
-
Re: Ceon URI Mapping (SEO)
Quote:
Originally Posted by
slomojojo
I was able to reproduce the error globablmemory described in his post on a clean install of Zencart 1.38a. The "preview link" he's talking about that's throwing the error isn't the preview button, but the preview icon on the admin categories page. I'm attaching an image with the icon links highlighted to avoid confusion.
Of course, it's a very minor issue, as I doubt many use those preview links. I hadn't really noticed they were separate links until I clicked one accidentally.
Love the software. Very easy to install.
I concur. I too was able to reproduce this error on all instances where I have installed this moduel.. To tell you the truth, as anal as I am about things need to WORK, I would have never noticed this error either..
-
Re: Ceon URI Mapping (SEO)
-
Re: Ceon URI Mapping (SEO)
Hi,
Quote:
Originally Posted by
DivaVocals
I concur. I too was able to reproduce this error on all instances where I have installed this moduel.. To tell you the truth, as anal as I am about things need to WORK, I would have never noticed this error either..
This is already fixed in 3.4.0.
I was amazed that it took over a year for anyone to notice the problem.. shows you that those buttons aren't used by many! I'd never used them myself either! :) (Plus the fix was just the correction of a simple typo! :) )
I'll release the new version sometime this week!
All the best...
Conor
ceon
-
Re: Ceon URI Mapping (SEO)
Hello,
To start --GREAT mod and documentation. Mod was easy to set up and works fine(even for me), but I have one minor issue. I've read through all the threads but could not find solution to problem below. I hope I didn't overlook it.
I am having the problem Gerjan describe below where the who's online in tools displays something like:/includes/templates/browntemplate/images/TopPanelText1.gif, or rarely the correct updated path ending with /favicon.ico for guest shoppers and registered users. Mostly I cannot tell where they are on my site. Spiders do not have this issue, showing either original path or updated path. I tried the solution he came up with but no success. For me this is minor issue but it was fun to watch customers behavior live on my site. I've been through the threads and looked for any issues others are having but found none. BTW I'm very new to zen. Thanks for any advise.
My htaccess lokks like:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://mrfancyplantsnursery.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://mrfancyplantsnursery.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.mrfancyplantsnursery.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.mrfancyplantsnursery.com$ [NC]
RewriteRule .*\.(jpeg|gif|png|bmp)$ - [F,NC]
# Don't rewrite any URIs ending with a file extension (ending with .[xxxx])
RewriteCond %{REQUEST_URI} !\.[a-zA-Z]{2,4}$
# Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !^/console.* [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]
RewriteCond %{REQUEST_URI} !/copper.* [NC]
RewriteCond %{REQUEST_URI} !/includes/templates.* [NC]
RewriteCond %{REQUEST_URI} !/googlesitemap.php.* [NC]
# Handle all other URIs using Zen Cart (index.php)
RewriteRule (.*) index.php?%{QUERY_STRING} [L]
Mike
PS I've seen it but forgot where--Where is the paypal link to buy you a pint or two?
Quote:
Originally Posted by
Gerjan
Thank you for answering. Sorry for my english. It's not perfect and I sometimes have difficulties explaining (technical) problems. Also, I'm not an expert. I observe, read, ask and copy. Sofar it works :wink:
That's the problem... it only links to the template directory, nomatter what page guests and customers are looking at. Strange thing is that spiders like googlebot don't have this problem, they show the original url/link. This problem started right after I installed uri mapping.
But... aftersome research I added this rewrite:
RewriteCond %{REQUEST_URI} !/includes/templates.*
Now it is solved (for as far as I can see) and CEON uri mapping is still working ok. The link that guests are looking at are also the links that are created by uri mapping. Like "bk_fortalit_braadpan_24cm" instead of "index.php?main_page=product_info&cPath=5&products_id=560".
When I started designing my template 1,5 year ago I have added a menu from Apple Zen Template and one month ago I added a flash header. I think the menu is causing the problem I descriped. If you want to take a look at my site :
Pannenland.nl
The only problem to solve now is that my "home"-button redirects to a category instead of the homepage. But that will come soon.
Hope can do something with this information for future questions en development.
Best regards, Gerjan
-
Re: Ceon URI Mapping (SEO)
Hi all!
I have this mod working perfectly on my test site but when I move it over to my live site it doesn't work.
I have simply FTP'd all my files from my test site to my PC then FTP'd them all up to my live server. Then I backed up the database and imported it to the live server.
Everything seems to work perfectly except for URI mapping. When I switch it off in admin all the links work, if I switch it on I get page not found.
Is there something in configuration that I've missed or is there some server setting I need to check/change?
I've had a look at the data in the URI tables in the database and everything looks ok. There's no references to my test server anywhere as far as I can see.
If anyone can help I'd be really grateful. It's the only thing that's stopping me going live :)
-
Re: Ceon URI Mapping (SEO)
Dunno about you, but the paths in my .htaccess file are different for my live sites versus the development site.. So when I move a site from dev to live, I usually have to adjust any files which contain file location/path data (configure.php, .htaccess, etc)
Dev - http://www.mysite.com/directory_name
Live - http://www.theirsite.com
is this possibly the case for you??
Quote:
Originally Posted by
damiantaylor
Hi all!
I have this mod working perfectly on my test site but when I move it over to my live site it doesn't work.
I have simply FTP'd all my files from my test site to my PC then FTP'd them all up to my live server. Then I backed up the database and imported it to the live server.
Everything seems to work perfectly except for URI mapping. When I switch it off in admin all the links work, if I switch it on I get page not found.
Is there something in configuration that I've missed or is there some server setting I need to check/change?
I've had a look at the data in the URI tables in the database and everything looks ok. There's no references to my test server anywhere as far as I can see.
If anyone can help I'd be really grateful. It's the only thing that's stopping me going live :)
-
Re: Ceon URI Mapping (SEO)
Hi,
Quote:
Originally Posted by
damiantaylor
I have simply FTP'd all my files from my test site to my PC then FTP'd them all up to my live server. Then I backed up the database and imported it to the live server.
Everything seems to work perfectly except for URI mapping. When I switch it off in admin all the links work, if I switch it on I get page not found.
It sounds like you have forgotten to upload a .htaccess file or the new server isn't configured to load .htaccess files, therefore making it redundant at present?!
Check the file is uploaded and if so, check that your server's Apache webserver has the appropriate AllowOverides directive to allow the loading of .htaccess files.
Hope that helps!
All the best...
Conor
ceon
-
Re: Ceon URI Mapping (SEO)
Hi Mike,
Glad you like the module, thanks for the nice comments!
Quote:
Originally Posted by
MMCDOO
HeI am having the problem Gerjan describe below where the who's online in tools displays something like:/includes/templates/browntemplate/images/TopPanelText1.gif,
Unfortunately I don't use the who's online functionality so I don't ever see this problem myself. I can't see how it would happen either, I don't know why image files would be tracked by who's online functionality!
I'm wondering if the who's online functionality can't cope with static URIs? I can't think why it would record images.. are you sure your first rewrite rule isn't causing this? Try removing it and only using the URI Mapping rule and see what happens!
Quote:
Originally Posted by
MMCDOO
PS I've seen it but forgot where--Where is the paypal link to buy you a pint or two?
Umm, I don't think I'm allowed to say here! :|
All the best...
Conor
ceon
-
Re: Ceon URI Mapping (SEO)
Quote:
Originally Posted by
conor
Hi Mike,
are you sure your first rewrite rule isn't causing this? Try removing it and only using the URI Mapping rule and see what happens!
ceon
Thanks for the quick response, I tried removing the first rewrite rule, no luck.
Here is what I see when looking at the Who's online:
Online ID Full Name
Asc Desc IP Address
Asc Desc Session
Asc Desc Entry Time
Asc Desc Last Click Time
Asc Desc Last URL Viewed
Asc Desc
00:10:43 0 „Spider 67.195.115.249 18:09:51 18:10:52
Time Since Clicked:
00:09:42 ago Session ID:
Host: b3090879.crawl.yahoo.net
User Agent: Mozilla/5.0 (compatible; Yahoo! Slurp/3.0; http://help.yahoo.com/help/us/ysearch/slurp)
/daylily-catalog/all-daylilies/ferengi-gold?language=en
00:01:48 0 „Guest 75.109.50.197 18:18:46 18:18:51
Time Since Clicked:
00:01:43 ago Session ID: ce9d145791d0f69cf37043b5e2524838
Host: cdm-75-109-50-197.asbnva.dh.suddenlink.net
User Agent: Opera/9.80 (Windows NT 6.1; U; en) Presto/2.2.15 Version/10.10
/includes/templates/browntemplate/images/TopPanelText1.gif
00:01:45 0 „Guest 75.109.50.197 18:18:49 18:18:49
Time Since Clicked:
00:01:45 ago Session ID: 06616725621a56cf971ec676011799e1
Host: cdm-75-109-50-197.asbnva.dh.suddenlink.net
User Agent: Opera/9.80 (Windows NT 6.1; U; en) Presto/2.2.15 Version/10.10
/daylily-catalog/favicon.ico
00:00:12 0 „Guest 75.109.50.197 18:20:22 18:20:24
Time Since Clicked:
00:00:10 ago Session ID: d239e37651610b1855fd660f055ae2e1
Host: cdm-75-109-50-197.asbnva.dh.suddenlink.net
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; GTB6.4; Mozilla/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2)
/includes/templates/browntemplate/images/TopPanelText1.gif
The spider usually apears correctly unless it is crawling a linked product through a subcategory- even then its almost right. Only human guests get the template directory. It really is no big deal though. Thanks for your help.
I'll find that paypal link again.
Mike
-
Re: Ceon URI Mapping (SEO)
Hi,
Quote:
Originally Posted by
MMCDOO
Thanks for the quick response
Actually, that was quite a long time to respond for me - I haven't been on the computer much recently! You must get very slow responses from other people if you thought that was quick! :|
I just looked at the whos_online.php function file and it simply records the REQUEST_URI.
Your rewrite rule omits any URIs ending in a 2 to 4 character extension from being rewritten and therefore processed by Ceon URI Mapping.
However the fact that whos_online is recording that path means that it is being processed.
I couldn't think of how this could be but computers don't do anything at random so I tried going to the URI recorded against your human visitor.
What I saw made me realise what is going on..
If you visit
http://www.mrfancyplantsnursery.com/...PanelText1.gif
You'll get a 404!
Same if you visit the path to the non-existent favicon.ico:
http://www.mrfancyplantsnursery.com/...og/favicon.ico
So something on your server is actually rewriting URIs behind the scenes to show a 404 page when a file isn't found.
The actual calling of this 404 page must be then being caught by the rewrite rule for Ceon URI Mapping and processed by Zen Cart.. meaning that the URI is then recorded by Zen Cart's who's online functionality.
So we now have a decent theory about what's happening!
You need to disable the 404 functionality on your site which attempts to display a custom 404 page for missing images. Or you need to exclude this page from the Ceon URI Mapping rewrite rule.
That should then mean that no attempt will be made to load the Zen Cart/URI Mapping engine to process the URI and therefore mess up your who's online list! :)
I should also point out that you should set a base href on your site or change the path to your favicon.ico file to be relative to the root of your site (put the full path to the file in your template).. obviously you don't have a "favicon.ico" file in every "directory" so paths like "/daylily-catalog/favicon.ico" will never be found!
All the best...
Conor
ceon
-
Re: Ceon URI Mapping (SEO)
Thanks Connor!!!
Turning off the 404 did the trick. Thanks also for the favico.ico tip. I hadn't noticed that.
Have a good one.
Mike
-
Re: Ceon URI Mapping (SEO)
Hi Mike,
Quote:
Originally Posted by
MMCDOO
Turning off the 404 did the trick. Thanks also for the favico.ico tip. I hadn't noticed that.
Have a good one.
Out of interest, in case anyone else asks, how did you "turn off 404"?
Thanks!
All the best...
Conor
ceon
-
Re: Ceon URI Mapping (SEO)
Quote:
Originally Posted by
conor
Hi Mike,
Out of interest, in case anyone else asks, how did you "turn off 404"?
Thanks!
All the best...
Conor
ceon
My question EXACTLY!!!:laugh:
-
Re: Ceon URI Mapping (SEO)
Quote:
Originally Posted by
conor
Hi Mike,
Out of interest, in case anyone else asks, how did you "turn off 404"?
Thanks!
All the best...
Conor
ceon
In Zencart admin under configure>mystore I had Missing Page Check set to display page not found. I turned this to off and visitors page addresses started showing correctly.
Thanks again for your help.
-
Re: Ceon URI Mapping (SEO)
Hi Mike,
Quote:
Originally Posted by
MMCDOO
In Zencart admin under configure>mystore I had Missing Page Check set to display page not found. I turned this to off and visitors page addresses started showing correctly.
Thanks again for your help.
Oh, that's not what I was expecting you to come back with.
You shouldn't disable that check.. what we want to do is to stop Zen Cart being loaded at all when your server finds that an image file is missing.
It shouldn't load Zen Cart when the image isn't found.. and Zen Cart is most likely being loaded because your server is redirecting to 404 page internally, the URI of which is then being "caught" by the URI Mapping rewrite rule and loading ZC.
What we need to do is to find out what is going on behind the scenes.. i.e. what 404 URI is being redirected to by your server.
Could you please post me privately (via e-mail not PM) your server's httpd.conf file so I can see what 404/error handling settings you have in place.
Thanks.
All the best...
Conor
ceon
-
Re: Ceon URI Mapping (SEO)
Heard 3.4 will be released soon. Can't wait!
-
Re: Ceon URI Mapping (SEO)
Quote:
Originally Posted by
conor
the module has no support whatsoever for URI Mappings for attributes, only for products.
Do you suggest that the module doesn't suit for websites containing products with plenty of attributes?
My issue:
I have Zen Cart 1.3.8a + Ceon URI Mapping module 3.2.4 installed. Everything works fine before the URI Mapping module is enabled. After the module is in function, those products with many attributes cannot be added to shopping cart, while other products with a simple attribute have no such problem.
p.s. I have studied this thread (more than 120 pages), examed .htaccess file, and have includes/functions/html_output.php modified properly.
:dontgetit
-
Re: Ceon URI Mapping (SEO)
Question 1: Is the module suitable for my site (having products with many attributes)?
Question 2: Codes of all product pages of my site have been customed, where the form doesn't make use of the zen_href_link function. If this might be the reason, how shall I handle with this?
Many thanks!
-
Re: Ceon URI Mapping (SEO)
Hi,
Quote:
Originally Posted by
hica
Question 1: Is the module suitable for my site (having products with many attributes)?
The module does not affect the way Zen Cart works, it is 100% compatible Zen Cart and any with any module that can handle static URIs.
Quote:
Originally Posted by
hica
Question 2: Codes of all product pages of my site have been customed, where the form doesn't make use of the zen_href_link function. If this might be the reason, how shall I handle with this?
This is the reason you are having problems. You *must* use zen_href_link for all links on your site.. otherwise you must hard-code any links to a page which you have created a URI Mapping for with the exact same URI as the mapping.
It's easier to just change any hard-coded links to use the zen_href_link function as this is a "dynamic" way to output URIs and will therefore always output the correct, up to date URI. Hard-coding URIs in your templates and core files is NOT A GOOD IDEA! :)
So change your form links back to using zen_href_link and you should be fine.
All the best...
Conor
ceon
-
Re: Ceon URI Mapping (SEO)
hi,
i am using zencart 1.3.8a .i want to use ceon url mapping to my website.i am strcut with Apache rewritable rule.this is my .htacces
file.Do i need to ask for any changes from my server people .
:oops::oops::oops::oops::oops:
**************************************************
RewriteEngine On
# Don't rewrite any URIs ending with a file extension (ending with .[xxxx])
RewriteCond %{REQUEST_URI} !\.[a-zA-Z]{2,4}$
# Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !^/admin123.* [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]
# Handle all other URIs using Zen Cart (index.php)
RewriteRule (.*) /index.php?%{QUERY_STRING} [L]
**********************************************
when i used this it gives internel server error.plz help me on this:no:
-
Re: Ceon URI Mapping (SEO)
Hi,
Quote:
Originally Posted by
Dilani_Ruwanmali
# Handle all other URIs using Zen Cart (index.php)
RewriteRule (.*) /index.php?%{QUERY_STRING} [L]
Try changing the above to
RewriteRule (.*) index.php?%{QUERY_STRING} [L]
All the best...
Conor
ceon
-
Re: Ceon URI Mapping (SEO)
Quote:
Originally Posted by
conor
This is the reason you are having problems. You *must* use zen_href_link for all links on your site.
...
So change your form links back to using zen_href_link and you should be fine.
All the best...
Conor
ceon
:clap: I followed your suggest and it works now! Thank Conor for your great support :yes:
And here comes the 'second season' of the issue:
For some products with file-upload option, it works fine if there's file uploaded. However if this file-upload option is not used, product will not be added to cart. It shows "?&number_of_uploads=1&action=add_product" in the link, where number_of_uploads should be zero as I guess.
So, my question: where to contral the value of number_of_uploads ?
I know this should not be any error of CEON module but my coding... would you give me some hint on this? :blink:
-
Re: Ceon URI Mapping (SEO)
Hi,
Quote:
Originally Posted by
hica
I followed your suggest and it works now! Thank Conor for your great support
I'm glad you like the software! :)
Quote:
Originally Posted by
hica
So, my question: where to contral the value of number_of_uploads ?
I'm afraid I've never used that aspect of Zen Cart. It might be something you set in the attributes controller where you have to make sure that the upload isn't "required".
I hope that helps!
Obviously as you say this isn't anything to do with the URI Mapping so if you're still having trouble you'll want to post a new thread on the forum to get help.
All the best...
Conor
ceon
-
Re: Ceon URI Mapping (SEO)
hi coner,
still its not working,it gives 500 internal server error.i am really new to this rewritable thing.Is there any other things to do to complete the Apache rewritable rule.:wacko::cry::cry::cry:
-
Re: Ceon URI Mapping (SEO)
Hi,
Quote:
Originally Posted by
Dilani_Ruwanmali
hi coner,
still its not working,it gives 500 internal server error.i am really new to this rewritable thing.Is there any other things to do to complete the Apache rewritable rule.:wacko::cry::cry::cry:
I'm terribly sorry but if that doesn't fix it I have no other suggestions! You'll have to get your server people (or someone else) to debug this. The rule you posted should work either as posted or with the modification I posted above. If it doesn't I really don't know what else to try!
Sorry I can't be of more help.
All the best..
Conor
ceon
-
Re: Ceon URI Mapping (SEO)
hi conor,
After installing the SEO mod and making the categories and pages have their own SEO URI, everything is fine.
However, when I visit /catalog/ or /catalog/index.php , I keep getting a 404 message but when I type /catalog/index.php?main_page=index, everything is fine.
Here is my .htaccess file for the catalog.
Quote:
RewriteEngine On
# ONLY rewrite URIs beginning with /catalog/
RewriteCond %{REQUEST_URI} ^/catalog/.* [NC]
# Don't rewrite any URIs ending with a file extension (ending with .[xxxx])
RewriteCond %{REQUEST_URI} !\.[a-zA-Z]{2,4}$
# Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !^/catalog/backoffice.* [NC]
# Don't rewrite editors directory
RewriteCond %{REQUEST_URI} !^/catalog/editors.* [NC]
# Don't rewrite cPanel directories
RewriteCond %{REQUEST_URI} !/cpanel.* [NC]
RewriteCond %{REQUEST_URI} !/frontend.* [NC]
# Handle all other URIs using Zen Cart (index.php)
RewriteRule (.*) index.php?%{QUERY_STRING} [L]
There may be a conflict between this and the wordpress SEO however, I don't see the Wordpress error page, I keep seeing ZenCart's.
Here is the relevant portion of the Wordpress SEO
Quote:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
If anyone is familiar with the Apache syntax, can you help?
-
Re: Ceon URI Mapping (SEO)
Hi, conor, Any idea when the URI Mappings Manager will be available? It's really a big job to generate thousands of products one by one, thanks!
-
Re: Ceon URI Mapping (SEO)
Quote:
Originally Posted by
ed20
Hi, conor, Any idea when the URI Mappings Manager will be available? It's really a big job to generate thousands of products one by one, thanks!
URI Mappings Manager is a commercial product, so Conor can't discuss it here on the forum..
-
Re: Ceon URI Mapping (SEO)
Quote:
Originally Posted by
conor
Hi,
If you can get IIS to use RewriteRules the module should work fine with it.
At Ceon we only use Apache so the only instructions included with the module are for that webserver. Unfortunately no-one using IIS has got a working RewriteRule for it or simply hasn't contributed that information here or forwarded it on to us. :(
If you do get it working with IIS please let us know how and I'll add the instructions to the documentation for the benefit of others!
All the best...
Conor
ceon
Conor
I wanted to let you know that CEON Module is working fine for IIS6/7 with third party tool ISAPI Rewrite except add to cart button. I am working with ISAPI Rewrite support team to make it work.
Related discussion thread is at below location if any one is intrested in
http://www.helicontech.com/forum/for...4227-TPN-1.htm
-
Re: Ceon URI Mapping (SEO)
Quote:
Originally Posted by
mamin
Conor
I wanted to let you know that CEON Module is working fine for IIS6/7 with third party tool ISAPI Rewrite except add to cart button. I am working with ISAPI Rewrite support team to make it work.
Related discussion thread is at below location if any one is intrested in
http://www.helicontech.com/forum/for...4227-TPN-1.htm
Conor,
I need your help making CEON Addon work with IIS7 and ISAP_Rewrite 3.0 version. Most part works except the Add to cart.
you can see what is happening at below:
http://www.brands4less.ca/for-men/me...ripe?cPath=1_6
I am trying to fix this issue by bypassing following URL pattern so ISAPI Rewrite tool does not do anything and let IIS process request without any modification. URL I am trying to bypass is below:
/index.php?main_page=product_info&products_id=3&cPath=1_6&number_of_uploads=0&act ion=add_product
and
/for-men/mens-shirts/mens-shirt-with-stripe?cPath=1_6&number_of_uploads=0&action=add_product
Basically bypass any URL which has action=add_product.
My question to you whether it is right way of doing it or not. In fact it is not working after bypassing this pattern. Can you please help me answer question at URL below discussion:
http://www.helicontech.com/forum/for...-amp;TPN-1.htm
See the post "Posted: 19 March 2010 at 10:23am"
-
Re: Ceon URI Mapping (SEO)
Hi,
Quote:
Originally Posted by
mamin
I need your help making CEON Addon work with IIS7 and ISAP_Rewrite 3.0 version. Most part works except the Add to cart.
I'm terribly sorry but the free support for this module does not extend to getting it working with IIS. I'd really love to help but I'm very busy with other projects and just don't have time I can spare getting familiar with IIS.
If someone could find a way to make days at least 48 hours long I'd greatly appreciate it!
If you do get this working please let us know here and I'll add the information to the docs for others.
All the best..
Conor
ceon
-
Re: Ceon URI Mapping (SEO)
I have competed a few successful installs of CEON and I think it is great.
I want to upgrade a site from Ultimate SEO to CEON.
I removed SEO using this info
http://www.magic-seo-url.com/zencart...-seo-urls.html
and the installed CEON to
www.classicalchandeliers.co.uk
I get the entry under admin/ modules to configure but no entry under admin/configuration!!!!
You can change the URLS's for categories and products but this is not working on the URL rewite.
Would you have any advise as to what I should do to resolve?
thanks/ Paul
-
Re: Ceon URI Mapping (SEO)
Hi,
Quote:
Originally Posted by
ptowers49
I have competed a few successful installs of CEON and I think it is great.
I'm glad that you like the software and are using it on several sites successfully!
Quote:
Originally Posted by
ptowers49
I get the entry under admin/ modules to configure but no entry under admin/configuration!!!!
You can change the URLS's for categories and products but this is not working on the URL rewite.
Sounds like something went wrong during the database creation process. You will have to either manually create the missing database options or you can remove the URI mapping config table and go back to the config utility to try and have it recreate the database and add the admin config options.
All the best...
Conor
ceon
-
Re: Ceon URI Mapping (SEO)
thanks Conor,
how can I
1. remove URI mapping config table? or
2. Create the missing database options?
or please point me in the direction of some documentation
thanks/ Paul
-
Re: Ceon URI Mapping (SEO)
yes, I know it maybe commercial, but we really need it, otherwise it will be a hugh job, please indicate when it will be available. thanks!
-
Re: Ceon URI Mapping (SEO)
Hi,
Quote:
Originally Posted by
ptowers49
1. remove URI mapping config table?
You can manage databases using software such as "PHPMyAdmin". This software is normally part of your hosting control panel.
Use that to DROP the URI Mapping configuration table and then go back to the config utility in the admin,
If you don't know where PHPMyAdmin is or how to use it then please search the internet for tutorials on PHPMyAdmin.
Quote:
Originally Posted by
ptowers49
2. Create the missing database options?
Inside the file admin/ceon_uri_mapping_auto_upgrade.php you will see the SQL commands used to create the database tables and add the configuration group/options to Zen Cart's configuration table.
If you know how to use SQL you can manually run the commands you can see in that file.
Again if you don't then you'll have to search the internet for PHPMyAdmin information or else get someone else to do this for you.
Hope that helps!
All the best...
Conor
ceon
-
Re: Ceon URI Mapping (SEO)
Quote:
Originally Posted by
ed20
yes, I know it maybe commercial, but we really need it, otherwise it will be a hugh job, please indicate when it will be available. thanks!
Okay let me explain this AGAIN.. In case you haven't notice, Conor hasn't answered your question about the URI Manager.. That's because the forum rules FORBID the discussion of ANY commercial modules here.. Don't mean to be harsh about this, but I think we ALL appreciate the need for this module. However, I for one do not want to see Conor suspended from this forum because YOU think this answer to your question is more important than Conor being afforded the ability to support Ceon URI here on this forum.
If the answer is important to you, you should try contacting Conor through his website (it's in the readme for this module) and ask all the questions you want about the URI Manager module.. I think you'll find not only is Conor WILLING, but ABLE to answer any questions you might have there..
-
Re: Ceon URI Mapping (SEO)
thanks Conor,
dropping the URI Mapping configuration table and recreating from admin worked a treat
many thanks for the prompt replies
Paul
-
Re: Ceon URI Mapping (SEO)
How do you prevent URI clashes, as with similarly named products?
BOOK TITLE: Real Estate Basics
http://www.yourstore.com/index.php?m...&products_id=5
http://www.yourstore.com/books/real-estate-basics
BOOK TITLE: Real Estate Basics (but different author, say)
http://www.yourstore.com/index.php?m...&products_id=6
http://www.yourstore.com/books/real-estate-basics
Does the plugin automatically look for such conflicts? How does it deal with them?
Thanks :smile:
-
Re: Ceon URI Mapping (SEO)
Hi,
Quote:
Originally Posted by
DogTags
How do you prevent URI clashes, as with similarly named products?
The module automatically appends an ascending number when creating copies of a product but it does not check for clashes with other existing products when adding/updating a product.
So you CANNOT have two products with the same name in the same category (if using autogeneration and the category paths are therefore the same).
Quote:
Originally Posted by
DogTags
Does the plugin automatically look for such conflicts? How does it deal with them?
No, having two products with the same name will break the URI Mapping functionality. One of the products will never be able to be found as only the first product using the URI will ever be matched.
You will have to make sure you don't have two products with the same name in the same category, or you will have to manually change the URI for one of the products to make sure it is different.
All the best..
Conor
ceon
-
Re: Ceon URI Mapping (SEO)
Many thanks Conor :smile: :smile:
-
Re: Ceon URI Mapping (SEO)
Has anyone been able to help with my root index problems and the suggested .htaccess changes?
-
Re: Ceon URI Mapping (SEO)
I have been using Simple SEO for a year now. I have 80,000 products and 400 categories. I noticed that I am getting a lot of errors in my webmaster tool due to not found. I also notice in other search engines that the language prefix is added to the URL which cause duplicate in the URLs sent to search engine.
I am debating between dynamic and static urls. It seems that if you don't do the static URL correct the cons will out weight the pros.
I use SEO re-write on my Wordpress setup and I never run into problems with Google. If I submit 10 links in the sitemap I get 9 indexed but I submit 100,000 link in Zen Cart sitemap I would be lucky if 10,000 get indexed.
The question is how does this mod compare to Simple SEO as far as speed of rewriting. I have multiple level categories. Is it possible to configure this mod to only display the last category in the category Tree.
Conor, if you think we can assist me in figuring out how to actually benefit from static URL please IM me or email me so we can discuss that. I don't mind paying for your time.
-
Re: Ceon URI Mapping (SEO)
Hi,
Quote:
Originally Posted by
CoolCarPartsOnline
The question is how does this mod compare to Simple SEO as far as speed of rewriting. I have multiple level categories
I'm afraid I've no experience of the module working with large sites so have no information to go by or to give you. I have no idea how well or not well the module would work with such a large site.
Quote:
Originally Posted by
CoolCarPartsOnline
Is it possible to configure this mod to only display the last category in the category Tree.
That's nothing to do with the module but with the category tree sidebox in Zen Cart. The module only modifies a single catalog side function, zen_href_link.. it's up to all the other Zen Cart code to make use of that function so the less it's used the fewer lookups need to be performed to get static URIs.
I'd say that with the number of products you have the lookups could be quite slow unless you have a decent server, so I'm not sure if you should use the URI Mapping module at all if you don't have a dedicated server.
Sorry I don't have better advice for you than that!
All the best..
Conor
-
Re: Ceon URI Mapping (SEO)
Hi,
I was able to install ceon 3.2.4 and saw the module.
After updating the products I will get an 404 error.
"Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request."
"The requested URL /store/eyes was not found on this server."
I searched through the thread, but did not find a solution.
Can anyone help?
Thanks
-
Re: Ceon URI Mapping (SEO)
Hi,
I'm having an issue trying to pass form data from an "external" file to a product page that has add-ons. It seems that the POST form data gets lost when the Ceon URI Mapping redirects the form to the current URL for the specific product.
The action is :index.php?main_page=product_info&cPath=17&products_id=2&number_of_uploads=0&act ion=view_product
And the resulting page URL is: category-name/product-name?cPath=17&number_of_uploads=0&action=view_product
When I print the POST array all the data is gone. The file has been working for years until I installed Ceon URI Mapping.
Any help would be most appreciated.
Thank you
-
Re: Ceon URI Mapping (SEO)
Quote:
Originally Posted by
chal2les
Hi,
I was able to install ceon 3.2.4 and saw the module.
After updating the products I will get an 404 error.
"Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request."
"The requested URL /store/eyes was not found on this server."
I searched through the thread, but did not find a solution.
Can anyone help?
Thanks
I was missing the htaccess file. :clap:
I think it works now!
-
Re: Ceon URI Mapping (SEO)
Quote:
Originally Posted by
chal2les
I was missing the htaccess file. :clap:
I think it works now!
Okay I have another issue.
Everything works, but my admin page does not show up.
It only shows up if I use /admin/login.php
I can say that it's the htaccess file since when I remove it the /admin site works again.
Anyone have a clue?
My htaccess file contain the following:
RewriteEngine On
# ONLY rewrite URIs beginning with /store/
RewriteCond %{REQUEST_URI} ^/.* [NC]
# Don't rewrite any URIs ending with a file extension (ending with .[xxxx])
RewriteCond %{REQUEST_URI} !\.[a-zA-Z]{2,4}$
# Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !^/adminmy.* [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]
# Handle all other URIs using Zen Cart (index.php)
RewriteRule (.*) index.php?%{QUERY_STRING} [L]
-
Re: Ceon URI Mapping (SEO)
Hi,
Quote:
Originally Posted by
chal2les
Everything works, but my admin page does not show up.
I think you need to remove the lines:
Quote:
Originally Posted by
chal2les
# ONLY rewrite URIs beginning with /store/
RewriteCond %{REQUEST_URI} ^/.* [NC]
And make sure you exlude your admin directory from the rewrite rule. Check you have the correct value for:
Quote:
Originally Posted by
chal2les
# Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !^/adminmy.* [NC]
That should be all you need to do.
All the best..
Conor
ceon
-
Re: Ceon URI Mapping (SEO)
Hi,
Quote:
Originally Posted by
AtTheEnd
I'm having an issue trying to pass form data from an "external" file to a product page that has add-ons. It seems that the POST form data gets lost when the Ceon URI Mapping redirects the form to the current URL for the specific product.
Quote:
Originally Posted by
AtTheEnd
When I print the POST array all the data is gone.
Yes, that's the way redirection works.. POST variables aren't available after a redirect unless they are specifically stored in the session using custom coding.
What you have to do is post to the final URI, not an intermediary.
So change the action of your external form to post to:
category-name/product-name
instead of
index.php?main_page=product_info&cPath=17&products_id=2&number_of_uploads=0&acti on=view_product
Alternatively you will have to store the values of the POST array before redirecting.
Quote:
Originally Posted by
AtTheEnd
The file has been working for years until I installed Ceon URI Mapping.
If you change the way a site works you shouldn't expect it to work the same as before! :p
That's all you need to get this working..
All the best..
Conor
ceon
-
Re: Ceon URI Mapping (SEO)
Ok, I have a question. I tried to search and see if anyone has asked this before but I didn't find anything.
When customers have an item in their shopping cart and click on the "Edit this product" button it just brings up the blank product-info page for that item.
I found the problem is that it is removing the query string "products_id=153" which is used to pull the correct item from the shopping cart session variable.
Any ideas on how to go about fixing this?
Thanks,
Danny
-
Re: Ceon URI Mapping (SEO)
Hi,
I removed
# ONLY rewrite URIs beginning with /store/
RewriteCond %{REQUEST_URI} ^/.* [NC]
and double check my don't rewrite for admin directory
# Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !^/adminmy.* [NC]
And I am still having issue logging in the admin page.
Any other ideas?
Quote:
Originally Posted by
conor
Hi,
I think you need to remove the lines:
And make sure you exlude your admin directory from the rewrite rule. Check you have the correct value for:
That should be all you need to do.
All the best..
Conor
ceon
-
Re: Ceon URI Mapping (SEO)
Hi,
Quote:
Originally Posted by
Dchrastil
When customers have an item in their shopping cart and click on the "Edit this product" button it just brings up the blank product-info page for that item.
What's the "Edit this product" button?
Fresh versions of Zen Cart have no such button!
Quote:
Originally Posted by
Dchrastil
I found the problem is that it is removing the query string "products_id=153"
That variable is automatically recreated when a mapped URI is loaded so you must be experiencing some other problem. I'll possibly know more when you describe the button you are talking about above.
All the best..
Conor
ceon
-
Re: Ceon URI Mapping (SEO)
Hi,
Quote:
Originally Posted by
chal2les
And I am still having issue logging in the admin page.
Any other ideas?
I'm afraid not.
Sorry!
All the best...
Conor
ceon
-
Re: Ceon URI Mapping (SEO)
Do you think its okay to just leave it like that and access the admin page through
admin/login.php ?
Thanks for the help.
-
Re: Ceon URI Mapping (SEO)
Hi,
Quote:
Originally Posted by
chal2les
Do you think its okay to just leave it like that and access the admin page through
admin/login.php ?
That sounds like a working alternative solution.. why not then? :)
All the best..
Conor
ceon
-
Re: Ceon URI Mapping (SEO)
It seems like I figured it out.
I used the below htaccess file.
RewriteEngine On
# ONLY rewrite URIs beginning with /store/
RewriteCond %{REQUEST_URI} ^/store/.* [NC]
# Don't rewrite any URIs ending with a file extension (ending with .[xxxx])
RewriteCond %{REQUEST_URI} !\.[a-zA-Z]{2,4}$
# Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !^/store/adminmy.* [NC]
# Don't rewrite editors directory
RewriteCond %{REQUEST_URI} !^/store/editors.* [NC]
# Don't rewrite editors directory
RewriteCond %{REQUEST_URI} !^/forums.* [NC]
# Don't rewrite cPanel directories
RewriteCond %{REQUEST_URI} !/cpanel.* [NC]
RewriteCond %{REQUEST_URI} !/frontend.* [NC]
# Handle all other URIs using Zen Cart (index.php)
RewriteRule (.*) /store/index.php?%{QUERY_STRING} [L]
Thanks alot for this module. I will enjoy using it.
-
Re: Ceon URI Mapping (SEO)
Hi,
Quote:
Originally Posted by
chal2les
It seems like I figured it out.
Ah, I see you mixed up your rewrite rules, using the one for the root folder when you should have been using the one for the store folder.
Quote:
Originally Posted by
chal2les
Thanks alot for this module. I will enjoy using it.
Glad you like it! Thanks for letting us know what you'd done wrong.. I couldn't see what else to suggest based on what you'd posted and am glad it is all working now!
All the best..
Conor
ceon
-
Re: Ceon URI Mapping (SEO)
Hi,
I actually moved the htaccess to the root folder after it did not work and rewrote the htaccess file to have the store folder.
It somehow resolved it but definately was not because of wrong location.
Thanks for the help!
Charles
-
Re: Ceon URI Mapping (SEO)
Hi Charles,
Quote:
Originally Posted by
chal2les
It somehow resolved it but definately was not because of wrong location.
It wasn't the location but the content of the .htaccess file that was the problem.. as your store was in a subdirectory, it needed to use the rule for a subdirectory, whereas you'd been using the rule for a store with no subdirectory. Once you used the right rule things started to work! :)
Quote:
Originally Posted by
chal2les
Thanks for the help!
No problem!
All the best...
Conor
ceon
-
Re: Ceon URI Mapping (SEO)
Hi ceon,
I really like your mod. I had some issues with my site and had to modify the .htaccess files and now I can't get back into my admin. I have 2 .htaccess files. One in the root directory (to redirect to the store) and one in the store directory. Here they are:
Root:
Code:
Options +FollowSymLinks
RewriteEngine on
# Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !/zencart/admin.* [NC]
RewriteCond %{REQUEST_URI} !/cpanel.* [NC]
RewriteCond %{REQUEST_URI} !/frontend.* [NC]
RewriteRule ^(.*) http://www.games4gamersonline.com/zencart/$1 [R=301,L]
Store:
Code:
# ONLY rewrite URIs beginning with /zencart/
RewriteCond %{REQUEST_URI} ^/zencart/.* [NC]
# Don't rewrite any URIs ending with a file extension (ending with .[xxxx])
RewriteCond %{REQUEST_URI} !\.[a-zA-Z]{2,4}$
# Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !^/zencart/admin.* [NC]
# Don't rewrite editors directory
RewriteCond %{REQUEST_URI} !^/zencart/editors.* [NC]
# Don't rewrite cPanel directories
RewriteCond %{REQUEST_URI} !/cpanel.* [NC]
RewriteCond %{REQUEST_URI} !/frontend.* [NC]
# Handle all other URIs using Zen Cart (index.php)
RewriteRule (.*) index.php?%{QUERY_STRING} [L]
What do I need to do to fix this? Admin keeps redirecting to the home page? Thanks for any help.
-
Re: Ceon URI Mapping (SEO)
In ALL of the RewriteCond patterns, remove the unwanted trailing .* part of the pattern where you are not capturing it in a backreference.
Change the reference to 'admin' to reflect what your admin folder is actually called.
Beware of paths that are localised when used with RewriteRule when the .htaccess is in a folder.
-
Re: Ceon URI Mapping (SEO)
You have your store in a subdirectory and are using a redirect so that when folks hit your main domain they are redirected to the sub-directory??? Why do you have Zen Cart setup in this manner?? You could solve a LOT of your issues by moving Zen Cart into your site root and NOT use a sub directory at all..
Quote:
Originally Posted by
games4gamers
Hi ceon,
I really like your mod. I had some issues with my site and had to modify the .htaccess files and now I can't get back into my admin. I have 2 .htaccess files. One in the root directory (to redirect to the store) and one in the store directory. Here they are:
Root:
Code:
Options +FollowSymLinks
RewriteEngine on
# Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !/zencart/admin.* [NC]
RewriteCond %{REQUEST_URI} !/cpanel.* [NC]
RewriteCond %{REQUEST_URI} !/frontend.* [NC]
RewriteRule ^(.*) http://www.games4gamersonline.com/zencart/$1 [R=301,L]
Store:
Code:
# ONLY rewrite URIs beginning with /zencart/
RewriteCond %{REQUEST_URI} ^/zencart/.* [NC]
# Don't rewrite any URIs ending with a file extension (ending with .[xxxx])
RewriteCond %{REQUEST_URI} !\.[a-zA-Z]{2,4}$
# Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !^/zencart/admin.* [NC]
# Don't rewrite editors directory
RewriteCond %{REQUEST_URI} !^/zencart/editors.* [NC]
# Don't rewrite cPanel directories
RewriteCond %{REQUEST_URI} !/cpanel.* [NC]
RewriteCond %{REQUEST_URI} !/frontend.* [NC]
# Handle all other URIs using Zen Cart (index.php)
RewriteRule (.*) index.php?%{QUERY_STRING} [L]
What do I need to do to fix this? Admin keeps redirecting to the home page? Thanks for any help.
-
Re: Ceon URI Mapping (SEO)
Hello,
Will this module work for an addon domain? Im getting HTTP 404 Not Found when im using exactly the same .htaccess as the main domain.
Thanks
-
Re: Ceon URI Mapping (SEO)
Hi,
Quote:
Originally Posted by
Berserker
Will this module work for an addon domain? Im getting HTTP 404 Not Found when im using exactly the same .htaccess as the main domain.
It'll work for any domain.. the module doesn't care where it is placed.
What is not working for you is your rewrite rule.. that's completely separate from the module.
You've obviously messed up when creating a rewrite rule for your "addon" domain (what's an addon domain? I guess you mean a subdomain?).
Make sure that your site for the subdomain either loads htaccess files and has the proper rewrite rule in the .htaccess file for the subdomain site or set the rewrite rule in the virtualhost directive for the subdomain site.
Also make sure your subdomain's setup doesn't clash with your main domain!
If you aren't sure what to do you might want to search the net for more information or pay a developer to help you.
Hope that helps!
All the best..
Conor
ceon
-
Re: Ceon URI Mapping (SEO)
It's an add-on domain. It has it's own domain name instead of using the same domain name as the main account (subdomain).
I've spoken with my webhost and they said that their addon domains does support .htaccess files.
Below is what I have in my .htaccess file
# Don't rewrite any URIs ending with a file extension (ending with .[xxxx])
RewriteCond %{REQUEST_URI} !\.[a-zA-Z]{2,4}$
# Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !^/admin.* [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]
# Handle all other URIs using Zen Cart (index.php)
RewriteRule (.*) index.php?%{QUERY_STRING} [L]
The above rules is the same as in the main account and the module works there.
Thanks
-
Re: Ceon URI Mapping (SEO)
Hi,
Quote:
Originally Posted by
Berserker
It's an add-on domain. It has it's own domain name instead of using the same domain name as the main account (subdomain).
The above rules is the same as in the main account and the module works there.
"Addon domains", "Main accounts".. I don't know what you mean.
A domain has a webspace account with it. That's it! :) Whatever this "addon" stuff is, you need to get your host to sort it out so that you can have it work as a "real" domain.
Sorry I can't be more help than that but this thread is for support of the module, not for general hosting/rewrite rule questions, you should start a new thread for that!
All the best...
Conor
ceon
-
Re: Ceon URI Mapping (SEO)
If you are using "add-on" domains, I find this works:
to your .htaccess add:
Code:
RewriteCond %{HTTP_HOST} ^(www\.)?YOUR-ADD-ON-DOMAIN-NAME\.com
RewriteRule .* - [L]
and for the directory the add-on lives in:
Code:
RewriteCond %{REQUEST_URI} !^/YOUR-ADD-ON-DIRECTORY.* [NC]
-
Re: Ceon URI Mapping (SEO)
Hi,
Quote:
Originally Posted by
kiddo
If you are using "add-on" domains, I find this works:
Thanks for posting the info.. hopefully it works!
What are these "add-on" domains you are both talking about?
Ridiculously cheap ways to host additional sites or something? (Hosting is so cheap these days I can't for the life of me see the need for anything like that?).
All the best..
Conor
ceon
-
Re: Ceon URI Mapping (SEO)
One more... Put the above in your main web root.
And if you use the CEON mod in the ad-on domain, put the .htaccess file in the directory of the add-on as if it was its own domain.
You can do this for multiple add-ons as long as you accomodate them (ignore them) in your main .htaccess
Clear as mud?
-
Re: Ceon URI Mapping (SEO)
Quote:
Originally Posted by
conor
Hi,
Thanks for posting the info.. hopefully it works!
What are these "add-on" domains you are both talking about?
Ridiculously cheap ways to host additional sites or something? (Hosting is so cheap these days I can't for the life of me see the need for anything like that?).
All the best..
Conor
ceon
Some hosts allow you to point additional domains at your account and host them as if they were stand-alone domains. For the most part, it works pretty well. Each add-on lives in a directory under the main web root.
I know BH, HM and CH offer this. Seems to be pretty common these days.
-
Re: Ceon URI Mapping (SEO)
I was hoping it would work but didnt...
This is what i have in the htaccess of the main domain
RewriteCond %{REQUEST_URI} !^/addondomain.com.* [NC]
RewriteCond %{HTTP_HOST} ^(www\.)?addondomain\.com
Rewriterule .* - [L]
# Don't rewrite any URIs ending with a file extension (ending with .[xxxx])
RewriteCond %{REQUEST_URI} !\.[a-zA-Z]{2,4}$
# Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !^/admin.* [NC]
# Don't rewrite editors directory
RewriteCond %{REQUEST_URI} !^/editors.* [NC]
# Don't rewrite livezilla directory
RewriteCond %{REQUEST_URI} !^/livezilla.* [NC]
# Don't rewrite cPanel directories
RewriteCond %{REQUEST_URI} !/cpanel.* [NC]
RewriteCond %{REQUEST_URI} !/frontend.* [NC]
# Handle all other URIs using Zen Cart (index.php)
RewriteRule (.*) index.php?%{QUERY_STRING} [L]
And this is what I have in the htaccess of the addon domain
RewriteCond %{HTTP_HOST} ^(www\.)?addondomain\.com
RewriteRule .* - [L]
RewriteCond %{HTTP_HOST} ^addondomain\.com
RewriteRule ^(.*)$ http://www.addondomain.com/$1 [R=permanent,L]
#RewriteCond %{HTTP_HOST} ^addondomain.com$
#RewriteRule ^/?$ "http\:\/\/www\.addondomain\.com" [R=301,L]
# Don't rewrite any URIs ending with a file extension (ending with .[xxxx])
RewriteCond %{REQUEST_URI} !\.[a-zA-Z]{2,4}$
# Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !^/admin.* [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]
# Handle all other URIs using Zen Cart (index.php)
RewriteRule (.*) index.php?%{QUERY_STRING} [L]
This module works in the main account but does not for the addon. There's not much difference between both htaccess file...
Thanks
-
Re: Ceon URI Mapping (SEO)
In ALL of the RewriteCond patterns above, remove the unwanted trailing .* part of the pattern where you are not capturing it in a backreference.
That is, !^/editors.* should be !^/editors here. Same for all of the other patterns.
-
Re: Ceon URI Mapping (SEO)
Quote:
Originally Posted by
g1smd
In ALL of the RewriteCond patterns, remove the unwanted trailing .* part of the pattern where you are not capturing it in a backreference.
Change the reference to 'admin' to reflect what your admin folder is actually called.
Beware of paths that are localised when used with RewriteRule when the .htaccess is in a folder.
Okay thanks, I will try that.
Quote:
Originally Posted by
DivaVocals
You have your store in a subdirectory and are using a redirect so that when folks hit your main domain they are redirected to the sub-directory??? Why do you have Zen Cart setup in this manner?? You could solve a LOT of your issues by moving Zen Cart into your site root and NOT use a sub directory at all..
Not really sure why. I do have non-Zen stuff stored on the server as well. I came from OSC a year or 2 back so that might have something to do with it.
Thanks for the replies.
-
Re: Ceon URI Mapping (SEO)
Quote:
Originally Posted by
g1smd
In ALL of the RewriteCond patterns, remove the unwanted trailing .* part of the pattern where you are not capturing it in a backreference.
Change the reference to 'admin' to reflect what your admin folder is actually called.
Beware of paths that are localised when used with RewriteRule when the .htaccess is in a folder.
Hmm okay I did this and it's still redirecting Admin to the home page....weird...
-
Re: Ceon URI Mapping (SEO)
Hi,
Quote:
Originally Posted by
g1smd
In ALL of the RewriteCond patterns above, remove the unwanted trailing .* part of the pattern where you are not capturing it in a backreference.
That is, !^/editors.* should be !^/editors here. Same for all of the other patterns.
Sorry but that information is wrong. Matching !^/editors.* or !^/editors is effectively the same as far these rules are concerned.
.* simply means "match any or no further characters".
So it's fine to have it.
You can read more about this if you search for "regular expressions" on the net.
All the best..
Conor
ceon
-
Re: Ceon URI Mapping (SEO)
Hi,
Quote:
Originally Posted by
Berserker
I was hoping it would work but didnt...
This is what i have in the htaccess of the main domain
RewriteCond %{REQUEST_URI} !^/addondomain.com.* [NC]
As far as I can see, this part will never match.
The %{REQUEST_URI} variable doesn't include the host name.
It would only match if you were matching against %{HTTP_HOST}
You are hijacking this thread somewhat to sort out your own hosting problems.
Rather than you posting lots of times I'd rather have a quick go and trying out an option or two to sort this out.
Please send me FTP details for your site and I'll try out a few ideas I have to get this working for you.
I may or may not be able to do that today depending on whether or not I can get internet access later... I'll be off for the Easter Holidays shortly.
All the best...
Conor
ceon
-
Re: Ceon URI Mapping (SEO)
Hi,
Thanks for the info!
Quote:
Originally Posted by
kiddo
Some hosts allow you to point additional domains at your account and host them as if they were stand-alone domains. For the most part, it works pretty well. Each add-on lives in a directory under the main web root.
I know BH, HM and CH offer this. Seems to be pretty common these days.
It sounds like a stupid way to set up a website. How hard is it to set up a VirtualHost directive so each additional domain is its own website?!
Some companies just don't have a clue unfortunately!
All the best..
Conor
ceon
-
Re: Ceon URI Mapping (SEO)
Quote:
Originally Posted by
conor
Hi,
Thanks for the info!
It sounds like a stupid way to set up a website. How hard is it to set up a VirtualHost directive so each additional domain
is its own website?!
Some companies just don't have a clue unfortunately!
All the best..
Conor
ceon
I'm pretty sure thats the way it does work. When you enter the info for the add-on domain, the software creates the proper virthost directives.
Some of the certified hosts offer this like coughcamelotcough. Maybe one of those guys could jump in and explain how its really done. I'm guessing the web root directive in the container just points to a sub-dir of the main account.
-
Re: Ceon URI Mapping (SEO)
Code:
.* simply means "match any or no further characters".
So it's fine to have it.
This is Server Configuration Code. The entire .htaccess file is parsed at least once for every URL request arriving at the server.
That being so, the file should use the most efficient code to get the job done. In this case, trailing .* characters on multiple patterns waste CPU cycles that you might later need elsewhere in serving the pages.
General rule of thumb is to only include such patterns when you need to capture the information in a backreference for later use.
Additionally, every RewriteRule should have the [L] flag to end Mod_Rewrite processing when that rule has matched the current request.
I've seen too many site owners forced into early server upgrades, when in actual fact inefficient code had wasted vast amounts of processing power.
This code *is* trivial but because it is core to server operation, getting the best possible efficiency is important.
-
Re: Ceon URI Mapping (SEO)
Hi, I'm not sure if this is the correct place to ask this but I think it may be an issue with this mod.
I've been testing my site's performance using this tool:
http://www.websiteoptimization.com/services/analyze/
When I used the tool to analyse this page:
http://www.snowrepublic.co.uk/FilesS...mondFile100X25
It is coming back with images not found even though the images are being displayed when I look at the page with my browser.
The path it is saying the images exist on are http://www.snowrepublic.co.uk/FilesStones/images/
but the real path should be http://www.snowrepublic.co.uk/images/
Is there a problem with this mod?
If so, am I seeing my images because my browser has cached them before I installed this mod?
Any help would be grately appreciated.
It may be a problem with the analysis tool; I've asked at weboptimization.com to see what they think.
I'll post their response when I get it.
-
Re: Ceon URI Mapping (SEO)
Quote:
Originally Posted by
conor
Hi,
Thanks for the info!
It sounds like a stupid way to set up a website. How hard is it to set up a VirtualHost directive so each additional domain
is its own website?!
Some companies just don't have a clue unfortunately!
All the best..
Conor
ceon
Guys,
I've just glanced a bit at the discussion here, so don't know if I'm capturing everything, but...
I'm using an add-on domain from my hosting provider (Midphase) for my website (www.edizioninautilus.it) and it is able to successfully handle Conor's great URI mapping module.
The add-on domain is all hosted in a sub-directory under the main domain files. I've simply followed the .htaccess rules in Conor's docs and placed that .htaccess file in the root directory of the subdirectory. All seems well.
If you're interested, here's a snapshot of my .htaccess:
RewriteEngine on
Options All -Indexes
RewriteCond %{HTTP_HOST} ^nautilustorino.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.nautilustorino.com$
RewriteRule ^/?$ "http\:\/\/www\.edizioninautilus\.it" [R=301,L]
RewriteCond %{HTTP_HOST} ^edizioninautilus.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.edizioninautilus.com$
RewriteRule ^/?$ "http\:\/\/www\.edizioninautilus\.it" [R=301,L]
RewriteCond %{HTTP_HOST} ^nautilustorino.it$ [OR]
RewriteCond %{HTTP_HOST} ^www.nautilustorino.it$
RewriteRule ^/?$ "http\:\/\/www\.edizioninautilus\.it" [R=301,L]
redirect 301 "/Libri/5000 anni fa - Chiomonte.html" http://www.edizioninautilus.it/5000-anni-fa-chiomonte
redirect 301 "/Libri/Archeologia del Ferro.html" http://www.edizioninautilus.it/archeologia-del-ferro
.
.
.
ErrorDocument 404 /index.php?main_page=page_not_found
# Don't rewrite any URIs ending with a file extension (ending with .[xxxx])
RewriteCond %{REQUEST_URI} !\.[a-zA-Z]{2,4}$
# Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !^/zzzzzzz.* [NC]
# Don't rewrite editors directory
RewriteCond %{REQUEST_URI} !^/editors.* [NC]
# Don't rewrite payment pages/callback handlers
# (Won't be rewritten by rules above but included here in case rewriting of URIs ending in .php is added)
RewriteCond %{REQUEST_URI} !^/ipn_main_handler.php.* [NC]
RewriteCond %{REQUEST_URI} !^/iridium_3d_secure_iframe.php.* [NC]
RewriteCond %{REQUEST_URI} !^/localities_remote_loader.php.* [NC]
RewriteCond %{REQUEST_URI} !^/nochex_apc_handler.php.* [NC]
RewriteCond %{REQUEST_URI} !^/protx_direct_3d_secure_iframe.php.* [NC]
RewriteCond %{REQUEST_URI} !^/realex_remote_3d_secure_iframe.php.* [NC]
# Don't rewrite cPanel directories
RewriteCond %{REQUEST_URI} !/cpanel.* [NC]
RewriteCond %{REQUEST_URI} !/frontend.* [NC]
# Handle all other URIs using Zen Cart (index.php)
RewriteRule (.*) index.php?%{QUERY_STRING} [L]
I left out a bunch of 301 redirects where the . . . s are in the cut and paste job above because there are a ton of them and they are ultimately just a repeat of the first two that I included.
Hope that helps some.
Jeremy
-
Re: Ceon URI Mapping (SEO)
Here's some hints to make the code much more efficient or correct common errors:
Quote:
Originally Posted by
edizioninautilus
RewriteCond %{HTTP_HOST} ^nautilustorino.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.nautilustorino.com$
A local OR will parse faster when used in .htaccess. Do also remember to escape periods in patterns:
Code:
RewriteCond %{HTTP_HOST} ^(www\.)?nautilustorino\.com$
Quote:
Originally Posted by
edizioninautilus
RewriteRule ^/?$ "http\:\/\/www\.edizioninautilus\.it" [R=301,L]
Escape special characters when used in patterns, but NOT in the target URL or filepath. End the domain name with a trailing slash:
Code:
RewriteRule ^/?$ "http://www.edizioninautilus.it/" [R=301,L]
Quote:
Originally Posted by
edizioninautilus
redirect 301 "/Libri/5000 anni fa - Chiomonte.html" http://www.edizioninautilus.it/5000-anni-fa-chiomonte
You cannot guarantee module execution order on the server so never mix Redirect and RedirectMatch directives in the same file where RewriteRule is in use. Use RewriteRule for ALL of your redirects and rewrites:
Code:
RewriteRule "Libri/5000 anni fa - Chiomonte.html" http://www.edizioninautilus.it/5000-anni-fa-chiomonte [R=301,L]
If you mix directives, and you have rewrites parsed before redirects, you'll end up exposing server internal filepaths as URLs.
Quote:
Originally Posted by
edizioninautilus
!\.[a-zA-Z]{2,4}$
Using the NC flag will parse 50% faster:
Code:
!\.[A-Z]{2,4}$ [NC]
Quote:
Originally Posted by
edizioninautilus
RewriteCond %{REQUEST_URI} !^/editors.* [NC]
Patterns are essentially prefix matches. In this case the trailing .* pattern is totally redundant. Remove it:
Code:
RewriteCond %{REQUEST_URI} !^/editors [NC]
DO ensure that your redirects are listed from most-specific to most general, with your general non-www to www redirect listed last. After the redirects, list all the rewrites, again from most-specific to most general. Ensure every RewriteRule is terminated with the [L] flag. Redirects will have [R=301,L] instead.
-
Re: Ceon URI Mapping (SEO)
Here's some hints to make the code much more efficient or correct common errors:
Quote:
Originally Posted by
edizioninautilus
RewriteCond %{HTTP_HOST} ^nautilustorino.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.nautilustorino.com$
A local OR will parse faster when used in .htaccess. Do also remember to escape periods in patterns:
Code:
RewriteCond %{HTTP_HOST} ^(www\.)?nautilustorino\.com$
Quote:
Originally Posted by
edizioninautilus
RewriteRule ^/?$ "http\:\/\/www\.edizioninautilus\.it" [R=301,L]
Escape special characters when used in patterns, but NOT in the target URL or filepath. Target URL should not be in quotes. End the domain name with a trailing slash:
Code:
RewriteRule ^/?$ http://www.edizioninautilus.it/ [R=301,L]
Quote:
Originally Posted by
edizioninautilus
redirect 301 "/Libri/5000 anni fa - Chiomonte.html" http://www.edizioninautilus.it/5000-anni-fa-chiomonte
You cannot guarantee module execution order on the server so never mix Redirect and RedirectMatch directives in the same file where RewriteRule is in use. Use RewriteRule for ALL of your redirects and rewrites:
Code:
RewriteRule "Libri/5000 anni fa - Chiomonte.html"
http://www.edizioninautilus.it/5000-anni-fa-chiomonte [R=301,L]
If you mix directives, and you have rewrites parsed before redirects, you'll end up exposing server internal filepaths as URLs.
Quote:
Originally Posted by
edizioninautilus
!\.[a-zA-Z]{2,4}$
Using the NC flag will parse 50% faster:
Code:
!\.[A-Z]{2,4}$ [NC]
Quote:
Originally Posted by
edizioninautilus
RewriteCond %{REQUEST_URI} !^/editors.* [NC]
Patterns are essentially prefix matches. In this case the trailing .* pattern is totally redundant. Remove it:
Code:
RewriteCond %{REQUEST_URI} !^/editors [NC]
Apply all of the above fixes to every line of code in your .htaccess file. DO ensure that your redirects are listed from most-specific to most general, with your general non-www to www redirect listed last. After the redirects, list all the rewrites, again from most-specific to most general. Ensure every RewriteRule is terminated with the [L] flag. Redirects will have [R=301,L] instead.