There a way to remove ?&language=en from the end of some of my urls... Google is saying I have duplicate title tags because of it
Printable View
There a way to remove ?&language=en from the end of some of my urls... Google is saying I have duplicate title tags because of it
I was able to resolve it. not a uri issue. It was a sitemap issue.
So I found the var that calls it up $var_linksList[$i]['link'];
My template called for another template for those elements in tpl_ezpages_bar_header.php
Within there is where I found $var_linksList[$i]['link'];
Anyone know where those are called up? Or how to find it?
Wow... so those variables are defined withing the easy pages in the admin>tools Talk about looking too deep into things... got it taken care of. Thanks
I've looked at this for a few days now and I can't seem to find any problems with the Rewrite text. I have noticed, however that when first appearing on my website if I hover the mouse over the (e.g) "Grasses" Category it shows an address of: ####/grasses?zenid=aad36069f1933f5c5c54b8124093a24c but if its actually clicked it turns to: ####/grasses and remains so for the rest of the session. Actually once any one link is clicked then all the links appear as they should using your URI Mapping. Could this first click actually be the log error thats appearing? Is what I just explained, with the link, supposed to happen? Cheers.
Sorry to bother you...
Simply go to Modules > URI Mapping Config in the Admin and the database tables will be automatically created.
This at the moment links me to a blank page, is this right there is no mention of this in the instructions...
Also
Go to Configuration > URI Mapping (SEO) in the Zen Cart admin, the option to disable/enable the module can be changed there.
This option is not in the menu structure yet, I assume this is an upload error on my behalf or as a result of the first blank page not creating the tables...
any help would be great
I have noticed that when first arriving on my website if I hover the mouse over the (e.g) "Grasses" Category it shows an address of: ####/grasses?zenid=aad36069f1933f5c5c54b8124093a24c but if its actually clicked it turns to: ####/grasses and remains so for the rest of the session.
Is this everyone elses experience here??
Hi, Conor, I use Easy Populate to generate thousand of my products one time, if I use Ceon URI Mapping, does it means I have to update every products one by one? or do you have any ways to solve this problem when using Easy Populate mod?
thanks for your kindness... i like your mod very much!
I just installed the module and followed all instruction and used the sample rewrite rule. My problem is that the mapping fields are not there when I go to edit a product or category? I hope this is just a simple mistake. My add new category/product pages are the same as before the mod. Any help would be great.
Hi Simon,
You can't use spaces in URIs!
You must rename your admin folder.
As for the blank page issue you are encountering, that implies a PHP error is occuring. Please search the forums for hints on what to do about this, hopefully that will help you find the source of the problem easily!
All the best..
Conor
ceon
Hi,
Quite simply, you haven't fnished installing the module. At the very least you've missed copying across the files from the modified_core_files folder.
Follow the installation instructions again, making sure to follow all the steps and you should be fine!
Be careful with the merging of any modified core files of course!
All the best..
Conor
ceon
Should I have the little box ticked for the auto-gen if it is an already existing product?
Also I want to say thanks conor for this great mod and for your quick reply!
Hi,
Tick it and click preview/update if you want to generate a new URI. Otherwise enter your own URI (or don't enter anything and leave the box unticked and no URI will apply for the product).
All the best..
Conor
ceon
Hey one last thing, Can you change the URl for for example the shipping & returns page or the contact us page?
Hi,
Yes, these are referred to as "other" Zen Cart pages in the docs. Instructions are there on how to manually add mappings for these pages using software such as PHPMyAdmin.
All the best...
Conor
ceon
Thanks Conor
I have implemented the new admin URL and have searched forums for answers on the blank page once I click the config option under Modules...
Can anyone give me a clue so I can find a bit of help on this issue please I seem to just come up with nothing that relates to it other than my post on this forum....
Cheers
I have installed this missed out the book core files as it says you dont need to install these, everything else has been installed but all I get now in the admin is a big fat white page??
What is the reason for this?
bump.....
I have noticed that when first arriving on my website if I hover the mouse over the (e.g) "Grasses" Category it shows an address of: ####/grasses?zenid=aad36069f1933f5c5c54b8124093a24c but if its actually clicked it turns to: ####/grasses and remains so for the rest of the session.
Is this anyone elses experience here??
I've looked at other peoples sites, that are using this mod, and it seems mine is the only one displaying this behaviour. Do you have any ideas what the problem is Conor? Anyone??
Hi,
You won't get any quicker or extra support from me by bumping posts.
Zen Cart adds the session ID, many sites I've seen add it and then remove it. There's nothing I can do about that, I suggest you just ignore it.. search engines know about session IDs I'm sure!
All the best..
Conor
ceon
Alright Conor so I'm back... I was able to get the ?&language=en at the end of my urls removed from my sitemap.. However google still crawls my site for stuff not in my sitemap and finds the ?&language=en show duplicate urls for everything. You know how I could chop that off the end?
You need to pose this questionon the XML Sitemap support thread.. That is where the "?&language=en" is coming from.. (Hint: this question has been answered in the XML Sitemap support thread so a quick search of that thread should provide you with the answer you need)
Hi,
I've had a new version of the module running here for several months now which tracks whether or not the user has just changed the language.
In a standard version of Zen Cart - which is not using this latest version of Ceon URI Mapping - "&language" is added.
The new code in this new version I've been running handles language changes transparently and will redirect the user to the specific URI for the newly selected language, so "&language" is never displayed on the site again if the URI has been stored in each language!
As well as that, if the user hasn't just selected a new language, but the URI uses a different language from the session, the session is switched to use the new language. This means that the page will display in the language that the URI is specifically defined for. So if a site has a page in two different languages but each has a translated URI (E.g. /chairs and /chaises), the session language will correctly represent the URI being displayed in the address bar!
This all greatly enhances the language handling of Zen Cart.
Another feature I've had running in the new version is code which removes the category ID from the URI (an extra cPath= some people have reported) if it is simply the product's master category as it will be regenerated when the static URI is loaded..
I've had those two new features ready to go since November I think but unfortunately I haven't released the code yet as I've been very busy and then got very ill recently and am only getting back on top of things now.. packaging up new versions takes a fair bit of time (if there are any problems in any upgrade lots of you will let me know it! :) ).. it's only with you mentioning this now that I have realised just how long its been since I actually wrote this code though!
I'll try and get a new release of the software out soon. (I know that's not exactly the news you wanted but at least now you know that the issue has been looked at.. and even better, code has been written which is already working!)
Al the best..
Conor
ceon
Any chance for some access to early code?
Thank you diva.. but as I stated before, it is not displayed in my sitemap. Google found it by crawling the page. It is disabled in the sitemap settings.
Hi,
Sorry, I don't have time to support beta code/releases as well as "official" stable releases.
All the best..
Conor
ceon
Hi,
Yes, I'm working on it.. hoping to get things sorted in February. Everything's been up the left since I got sick last year but now I'm in recovery I'm back to work as much as I can.. please bear with me! :)
All the best...
Conor
ceon
I just wanted to say a big thanks to Conor, and wish you a good recovery and sounds like you are doing well.
I think this module is really good for seo, I just have to do the other pages such as contact us, sitemap pages which have the crappy urls as I can not do these within admin? unless I am wrong. As a complete novice I am still trying to get my head around doing the other pages.
All the best Conor, you are a legend mate!
Hi Jay,
Thanks for the nice comments!
You have to enter URIs for the "other" Zen Cart pages using software like PHPMyAdmin. It's easy though and documentation on how to do this is provided with the module. The section you need is:
"Specifying the current URI Mapping for any other Zen Cart page"
Part 1 applies for the pages you've mentioned.
All the best..
Conor
ceon
Cheers Conor,
You know what I am like with all this, mentally challenged but you should be commended for your work on this :D
No problem. I look forward to the new release. Thanks for all your work
Hello,
I'll first join everyone in thanking you for the hard work that you put in to make this excellent mod.
Extremely easy to install (on test at least), and the functionality is awesome.
I unfortunately am having an issue when I move to my live shop though. I'm going to assume it is an IIS problem due to the fact that my test env is apache. I do however have isaap rewrite installed on my iis server to make .htaccess work, which I am certain it is because I use it for 301 redirects already.
Everything seems to be making it out of the html_output file correctly, because the URLs are changing. The issue is them redirecting... When a link (eg. http://www.mystore.com/blue-widgets that used to be index.php?main_page=index&cpath=1) is clicked the page will redirect to the home page. No 404 problems which makes me believe the htaccess rules are being recognized and maybe just not processed correctly.
Perhaps there are alternate htaccess rules in this case.. I am kind of lost. Any help will be greatly appreciated
Thanks again.
Hi,
Thanks, glad you like it! (especially the bit of it that does actually work with your desired server! :) ).
The problem as you have described it definitely means that the module is working fine and the server is simply not able to map the URIs to the central control script, Zen Cart's index.php (which then runs the URI Mapping software to process the URI via the ZC init system).
I took a look at a tutorial there for Helicon ISAPI rewrite and it seems that it should be easy enough to get to grips with.
I can't test it personally because I don't have a IIS server or the time to set one up to play with (although I will do someday, sounds interesting).. but the one thing that struck me straight off is that the names/formats of the environment variables in the rewrie conditions/rules are different.
For example, instead of variables like %{REQUEST_URI} the format is more like User-Agent: (no percentage sign and breackets but the text and a colon).
I don't really know if changing the format is all you need to do.
As I said, I'ld be interested in looking into this someday ut just don't have the time at the minute.
Hopefully my quick look and thoughts there mnight help steer you in a workable direction?!
The other thought I had was for you to modify the init_ceon_uri_mapping.php file on your server to dump the contents of the $_SERVER['REQUEST_URI'] variable and see what your IIS server is setting there.. as it's the all essential variable for themodule.. itf it's not being set correctly then you would indeed more than likely just end up at the home page each time without any 404 (the behaviour you are experiencing).
Hope that helps.. if you get this "fixed" please let us know the solution.
All the best..
Conor
ceon
[FONT=monospace][/FONT]
Hey Conor,
Thanks for the fast response. I was looking into the formatting but I'm not sure if that is the issue as I belive ISAPI_Rewrite is supposed to handle .htaccess the same way apache does.
http://www.helicontech.com/isapi_rew...ewriteCond.htm
Also,
These are working for me...
RewriteEngine on
RewriteCond %{HTTPS} (on)?
RewriteCond %{HTTP:Host} ^(?!www\.)(.+)$ [NC]
RewriteCond %{REQUEST_URI} (.+)
RewriteRule .? http(?%1s)://www.%2%3 [R=301,L]
RewriteCond %{THE_REQUEST} ^.*/index.html
RewriteRule ^(.*)index.html$ http://www.mysite.com/$1 [R=301,L]
Is there any files that you could think of that I may have missed something on. I'm pretty certain (just as you are) that it's something with the server but figured it wouldn't hurt to ask.
Thanks again Conor.
ALSO -- ANYONE ELSE GET THIS TO WORK ON IIS AT ALL?
:censored: IIS
Hi,
I'll get in contact with you privately for FTP details as short of tracing what's happening on your server by adding debug output to init_ceon_uri_mapping.php there's nothing else I can think of.
All the best..
Conor
ceon
Thanks for not only creating a solid light-weight mod but going above and beyond by offering support for bugs to your users.
I know that it has been ages since this problem has come up (I read through the entire 114 pages!) but, here let me quote you..
In the version 3.2.3 release you say..Quote:
Originally Posted by Conor
I still have the problem in the 3.2.4 release. I have reinstalled the module and cleaned up my zen cart store, URL: http://biggrowhydro.comQuote:
Originally Posted by conor
Nothing I do seems to fix the Pagination function when browsing by manufacturer nor when viewing a category.
I would prefer to use the Ceon SEO mod over any of the other offering so I really hope that you and I can get to the bottom of this. Perhaps you could go over with me how you solved the bug initially?
Thanks in advance,
John
Whoops, forgot something...
The only other third party mods I have installed are easy populate and sitemap xml.
Hi John,
Thanks for the nice comments, glad you like the software!
It was never broken for browsing by category so something must be up with the query string parameters on your site.
The only page on your site I could see with a mapping was http://biggrowhydro.com/fluorescent-lighting-accessori (did you mean to drop off the "es"at the end??) and the filtering by manufacturer doesn't appear to be working on it (although there's not enough products to check the pagination I'd imagine it's not working either). I can't explain that other than to think you think you've uploaded the latest version's files but are in fact still using some files at least from an older version. I'd suggest reuploading the files again.
One other thing.. you've spelt DVDs wrong on your site! It's not "DVD's" as you have it (DVD's what? What do the DVDs have? :) ).
Hope that helps!
All the best..
Conor
ceon
Where can I find the query string parameters?Quote:
It was never broken for browsing by category so something must be up with the query string parameters on your site.
I turned off the URI mapping on the categories (minus the fluorescent lighting accessories because I missed it) because it rendered such a large percentage of the content inaccessible.
Thanks for the grammar lesson. There have been over 20,000 hits and no one had pointed it out yet! haha. As for the dropped es after fluorescent-lighting-accessori, the auto generate did it. Perhaps a character max? I don't know. I have corrected it now.
I have enabled URI mapping on the category "seeds" to show you the trouble I am having.
Hi,
If you dump the contents of the $_GET variable you'll see them (that's what this variable holds).
I'd add the following code in a few places to see why your site is losing the sorting/filtering/pagination settings:
var_dump($_GET);
You're looking ot see at what point the "sort" key etc. is being wiped.
The section of the code which was introduced to fix the manufacturers pagination bug was:
If you don't have that in init_ceon_uri_mapping.php then you're still using an old, broken version of the module.PHP Code:
$query_string_parameter_pairs = explode('&', $query_string_to_match);
foreach ($query_string_parameter_pairs as
$current_query_string_parameter_pair) {
$key_and_value = explode('=', $current_query_string_parameter_pair);
unset($_GET[$key_and_value[0]]);
}
Hope that helps!
It's one of those things I notice. :)
No, so I'm left wondering if something else is up on your site!
Regardless, check the above first please!
All the best...
Conor
ceon
I have the latest init_ceon_uri_mapping file so that isn't the cause.Quote:
Originally Posted by Conor
Could you walk me through exploring the contents of the $_GET variable, specifically where you say to add var_dump($_GET); "in a few places".
Hi,
That's almost a pity, I was hoping for an "easy answer" like that! :)
Sorry, walk throughs are one of the things I simply won't do for free, it takes up too much time when life is too short!
If you have a developer working on your site please ask them to "trace" what's going on with your GET variables.. at some point the "sort" parameter etc. is being dropped for some reason, causing sorting to fail on your site.
I wish you luck in getting this fixed.. I can't imagine it should take too long to find out what's happening (fingers crossed anyway!).
All the best...
Conor
ceon
Sorting only fails when I use your uri mapping software. If the entire sort function didn't work all of the time I would be much more worried. If you're not willing to do it for free what would it cost?
I am a web developer and have spoken with a friend of mine who was just as dumbfounded as to why it only breaks when using your software.
Hi,
Thanks very much for the nice comments DivaVocals! I wasn't trying to solicit business, was just saying that due to its time consuming nature, manually editing forum members' websites to manually trace through their environment setup is unfortunately beyond the level of support I provide with this particular module. If I thought it was a bug with the module I'd go as far as doing that for snaple but since this behaviour hasn't been reported by anyone else and can't be replicated by me I think it has to be server/site specific and therefore the work required to help isn't something I can offer on this forum.
I hope snaple gets it sorted though of course! Manually tracing this should be time-conusming but easy to do.
All the best..
Conor
ceon
Hi,
Reading over things again that seems clear now.. must be a bit too late for me here I think!
Thanks for the help/comments as usual DivaVocals!
All the best..
Conor
ceon
Hi Guys,
What a great mod this is...
But the queston I have is we have forums and gallerys also on our server.
This mod works a treat but I have not been able to get therewrite rule working so it exludes the forums
We use http://<URL>/forums and http://<URL>/gallerys
When this mod is active, when you go to the forums or gallerys, we just get a page is not found.
Can anyone give me any pointers?
Regards
Hi Chris,
I'm glad you like it and find it useful for your site.. I'm starting to see a pattern in that.. :)
It appears you haven't read the documentation? You should always take a look at the docs that come with software!
The third entry in the FAQs (Frequently Asked Questions) is:
"The module is blocking access to part of the site (e.g. the site's control panel)!"
which leads to part of the configuration section you should have read:
"Adding exceptions to the rule to prevent particular addresses (e.g. Control Panels etc.) being handled by Zen Cart"
You have to add the following to your htaccess file, before the RewriteRule line:
I have to point out as well that there's no such word as "gallerys".. it's "galleries"! :)Code:# Don't rewrite forums/gallerys directories
RewriteCond %{REQUEST_URI} !/^forums.* [NC]
RewriteCond %{REQUEST_URI} !/^gallerys.* [NC]
All the best..
Conor
ceon
Wow,
Thanks for the quick reply.....
I do apologise in advance for my stupidity, but should the rewrite rulles look like this?
# 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)
RewriteCond %{REQUEST_URI} !/^forums/.* [NC]
RewriteCond %{REQUEST_URI} !/^gallerys/.* [NC]
RewriteRule (.*) index.php?%{QUERY_STRING} [L]
With the gallerys thing what the customer wants they get :-)
Cheers
Hi,
I made a rather obvious typo there.
The ^ is in the wrong place. It should be:
Once you make that change everything should work fine, your client's .htaccess file is fine.Code:# Don't rewrite forums/gallerys directories
RewriteCond %{REQUEST_URI} !^/forums.* [NC]
RewriteCond %{REQUEST_URI} !^/gallerys.* [NC]
Just tell them that they'll get no results on google if they spell it wrong and they'll wise up and use "proper" words!
All the best...
Conor
ceon
Hi
Just downloaded an install URI Mapping but seem to be getting a extra /
"www.myshop.co.uk//specials"
any ideas
Hi,
[quote=fita1440;845184Just downloaded an install URI Mapping but seem to be getting a extra /[/quote]
Check your DIR_WS_CATALOG setting in includes/configure.php (it should be a single slash). Otherwise quite simply you must be entering two slashes when adding the URIs manually to the database.
All the best...
Conor
ceon
DIR_WS_CATALOG is single slash
i'll enter say "specials" in the box for yourown urls but it adds a "/" at the front
Hi,
All URIs in the Ceon URI Mapping table must start with a slash.
The fact that you have two slashes means your .htaccess file must be adding an extra one (through a third party rewrite rule) or your server.
The URI Mapping module is definitely not adding the double slash.
Hope that helps you trace this problem down!
All the best...
Conor
ceon
Does this AdOn Supports for Windows/IIS7 ?. Will it work on my Windows 2008/IIS7 installation of Zen-Cart ?. I see that it is mentioned about Apache, but I did not see anything for IIS Web Server ?.
Is there any special instruction for IIS6 OR IIS7 ?
Thanks
Manoj
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
Hi Conor,
Great add-on!
I downloaded and installed it yesterday. I was a little bit confused how the .htaccess file worked but I created one in the same folder as the install index.php as per the instructions. I followed the steps to change to /shop and also /admin is different.
Everything seems to be working fine, I've started updating links to be autogenerated. Its so easy, but takes a while. There isn't a button you can press to update all categories/products all at once?
I've just realised today, that our main page doesn't show up.
www.giftpackaging.com.au
www.giftpackaging.com.au/shop/ will work once you click on "home" etc
Can you help on this?
Michael
I've installed everything according to the directions and the url's change and everything seems to work, but when I click on the new url it comes to a broken link.
Nevermind, had forgotten to add the info to the htacess file.
This add is great and works fine! Thank you very much!
I have only a problem with EZ-Pages, if i use
modified_core_files/1.3.8a/admin/ezpages
i have this error:
1054 Unknown column 'pages_title' in 'order clause'
in:
[select * from ezpages order by toc_chapter, toc_sort_order, pages_title limit 0, 20]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
no problem with products, categories...
Whata can I do?
(thank you again)
Hi,
This isn't a problem with the module I'm afraid.
It's a problem with your database! The error is saying that your ezpages database table is missing the pages_title column!
You'll have to restore the table to a working version or add that column back in.
I'm afraid I've no idea how that could have happened but I can assure you it wasn't any software from Ceon that did this.. you must have installed some bad software or made a mistake in PHPMyAdmin and accidentally deleted that column or something.
Hope you get this fixed!
If you can't fix it, please start a new thread, unfortunately this is nothing to do with the URI mapping module so I can't help you on this thread!
All the best..
Conor
ceon
Sorry, I thought there was a connection because if I use the existing version of ezpages.php have no error (but does not appear at the bottom the ceon's function) If I use ezpages.php included in the installation I have this error.
Hi,
That means that your old version was a custom version or else from before Zen Cart 1.3!
The modifications made to that file for URI Mapping don't include anything to do with the pages_title column.
The easiset course of action for you is probably to "compare" your old version with the URI Mapping version and merge the custom changes you have with the additions the URI Mapping module makes.
A tool like "Beyond Compare" or "WinMerge" would be useful for that.
All the best...
Conor
ceon
ok I will follow your advice
Thanks again and congratulations for the add
Hi,
I just installed the URI Mapping mod and it is a great mod that seems to work well. However, I am having a bit of problem.
I have the User Tracking mod installed. When I go to look at the User log, I now get warning boxes pop up. The first box has the ZenAdminId and the zenid listed. I then click that box off and another box appears that says this:
strats_sa_surl_xss.nasl
This box appears twice. I then click those off and a warning box appears that says this:
mod_perl_status_uri_xss.nasl
These boxes never appeared prior to installing the Mapping mod and going to the tracking logs for the days prior to installation does not produce the warning boxes. They only appear for the days after installation. I am also seeing that an XSS attack was attempted on my server after I installed the mod.
Does allowing the URI rewrites necessary to make this mod work make XSS attacks possible? Am I now open to these attacks because of installing this mod?
A while back, Zen Cart posted a security fix for XSS attacks, which I installed. I believe it involved the replacement of some of the files the Mapping mod uses. I made sure that I used those security fix files and then added the necessary code from the Mapping mod files. Do these security fixes no longer function due to the additions of the new code?
I would appreciate any help you could give me.
Thanks,
Hi,
I'm glad you like our software! Unfortunately I'm not familiar with the module you have described so there's nothing specific I can say about what is happening to you.
I can say though that I think you are probably experiencing what is called a "correlation".. although you are attributing things happening because of the module being installed, which is a "causation", I think in fact the module has nothing to do whatsoever with these things happening but may just be showing them up, or the timing may just be a coincidence and you did something else at the same time as installing the module which is causing the behaviour you have described.
The URI mapping module only modifies a single file on the catalog side, html_output.php. So unless the XSS fix involved that file, installing the URI mapping module can't possibly have any effect.
If the fix you installed does use that file then you should merge the files using software like Beyond Compare or WinMerge.
Well there's a completely comprehensive answer for you! It's not this module so you know you can look elsewhere (or carry out a merge if html_output.php is the culprit). :)
All the best..
Conor
ceon
Hi
Couple of days ago I installed Ceon URI module on latest Zen Cart and all my old URL are working fine, however, if I add any of the new products, it is not showing in the category it was added.
If I disable Ceon URI Module, I can see the product correctly. What could be the issue ?
ZenCart Version: 1.3.8A
New Installation
Module Installed: Ceon URI
Windows IIS 7
URL rewriting by: ISAPI Rewrite 3.0
Thanks
Hi,
The example rules provided with the module are all for the Apache webserver.
I've no idea how to get them to work with IIS. Hopefully someone else here does or you can get this figured out!
If you get this working please post back here with your solution so that others using IIS and ISAPI Rewrite can get it working as well.
Thanks!
All the best..
Conor
ceon
I have downloaded and installed this mod, and it is great! Pretty easy install and easy to follow documentation.
My problem: On one of my sites, I use the AJAX Image swapper mod that also incorporates the fual slimbox lightbox and Image Handler. None of my product images seem to load.
While searching through previous threads, I came across this:
As far as a solution to this problem to get my images up, i'm not sure which files I would need to modify. I need to keep the image swapper, but would love to keep the URI mod. Can I make both work together?Quote:
For the benefit of others out there.. these missing pages in the error log are part of a module called fual slimbox lightbox. It builds relative paths to its javascript files as it (wrongly) assumes it will only ever be used from the base shop folder (e.g. / or /shop/). (This clearly isn't the case when you have /shop/books/life-is-good as the current URI for a product!).
Hi,
Glad you like the module, thanks for the nice comments!
The module can work with any other module.. it's just a matter of updating other modules to be able to work with static URIs instead of relative URIs.
It sounds like you may need to adjust either your template or the software you are integrating with to use full, static paths for your image swapper URIs. I think they must be using relative URIs at present.
So instead of "images/my_image.jpg" you want to use "/images/my_image.jpg" (note the path starts with a slash!).
Hope that helps you sort this out.
As this appears to be a problem with the other module not working with static URIs you'd best post in the Image Swapper module's thread if you need any further help with this. I'm afraid I don't provide support for integrating third party modules with the URI mapping module on this forum.
All the best...
Conor
ceon
Hi Conor,
Thanks for the answer. I had a thought that the problem might have been a coincidence, however, I thought I should check to make sure.
Thanks
Hi,
It could possibly be that the slimbox module uses relative URIs and you have a base href tag set so you never experienced these problems.
I don't know if that's the case, just saying off the top of my head.. I'd have to take an actual look at the slimbox module to see if it is!
Just thought I'd post that thought in case the problem is relative URIs in the slimbox module and your post the the previous poster "off the scent". May not be the case. may be. Don't know! :)HTML Code:<base href="http://www.yoursite.com/images/" />
All the best..
Conor
ceon
Hi,
Just took a quick look at the source of the slimbox module (didn't install or run it tho) and it does indeed use relative URIs.
So either you must make sure that you have a base href set in your HTML header (includes/templates/YOUR_TEMPLATE/common/html_header.php) or, if your store is NOT on a subdiretory (i.e. DIR_WS_CATALOG is '/') you can try changing the value of DIR_WS_IMAGES in your configure.php, making it a full path (note slash at start):
Or you can update the zen_lightbox() functin in includes/functions/extra_functions/zen_lightbox.php to make it output static URIs by adding in the path to the image folder everywhere you see DIR_WS_IMAGES:Code:define('DIR_WS_IMAGES', '/images/');
One of those solutions should get you up and running.Code:'/myshop/' . DIR_WS_IMAGES
I'd appreciate it if you post back here to like me know how you get on!
All the best..
Conor
ceon
I do indeed.. These are the settings from my configure.php
Code:/ Define the webserver and path parameters
// HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
// HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
define('HTTP_SERVER', 'http://www.mysite.com');
define('HTTPS_SERVER', 'https://www.mysite.com');
// Use secure webserver for checkout procedure?
define('ENABLE_SSL', 'false');
// NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
// * DIR_WS_* = Webserver directories (virtual/URL)
// these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');
define('DIR_WS_IMAGES', 'images/');
Thanks for the suggestions.
I tried this, but it did not work. I was thinking that the configure.php change would be the easiest fix. I also tried the base href in the header.Quote:
you can try changing the value of DIR_WS_IMAGES in your configure.php, making it a full path (note slash at start): define('DIR_WS_IMAGES', '/images/');
Along with the lightbox.php file, I have another file "ais_functions.php" that came with the ajax image swapper that is also in the extra functions folder. Here is a sample of the code:
Not sure if this can help pin point what needs to be done. I figured the DIR_WS_IMAGES is where the problem is.Quote:
$ais_config = array();
$ais_config['small']['width'] = IMAGE_VIEWER_SMALL_IMAGE_WIDTH;
$ais_config['small']['height'] = IMAGE_VIEWER_SMALL_IMAGE_HEIGHT;
$ais_config['medium']['suffix'] = '_MED';
$ais_config['medium']['width'] = IMAGE_VIEWER_MEDIUM_IMAGE_WIDTH;
$ais_config['medium']['height'] = IMAGE_VIEWER_MEDIUM_IMAGE_HEIGHT;
$ais_config['large']['suffix'] = '_LRG';
$ais_config['large']['width'] = IMAGE_VIEWER_LARGE_IMAGE_WIDTH;
$ais_config['large']['height'] = IMAGE_VIEWER_LARGE_IMAGE_WIDTH;
//Enter the filename of small (default) image, generate filenames for the other sizes.
//Sizes are 'small', 'medium', or 'large'
function get_image_filename($filename, $size = 'small') {
global $ais_config;
$filename_array = explode('.',$filename);
$ext = '.' . $filename_array[count($filename_array) - 1];
$filename_only = substr($filename, 0, strrpos($filename,'.'));
if ($size != 'small') {
$filename_only = substr_replace($filename_only, DIR_WS_IMAGES . $size . '/', strpos($filename, DIR_WS_IMAGES), strlen(DIR_WS_IMAGES));
}
if ($size == 'large') {
$new_filename = (file_exists($filename_only . $ais_config[$size]['suffix'] . $ext))?($filename_only . $ais_config[$size]['suffix'] . $ext):((file_exists($filename_only . $ais_config['medium']['suffix'] . $ext))?($filename_only . $ais_config['medium']['suffix'] . $ext):($filename));
}
else {
$new_filename = (file_exists($filename_only . $ais_config[$size]['suffix'] . $ext))?($filename_only . $ais_config[$size]['suffix'] . $ext):($filename);
}
return $new_filename;
}
Any success for anyone of you to make the zen lightbox work together with SEO URL's.
My lightbox was working well before i installed SEO URL's on my jewellry store.
Can anyone suggest some fix ?
You may have a look at lustrejewel.
Hi,
I'd still say it is.
I'm sorry but I'm not willing to put in any more time supporting another person's module. If you follow the advice I've given about the use of relative URIs and making the other software use full paths by changing the code that uses DIR_WS_IMAGES you should be able to get the other module to work with sites that use static URIs (i.e. with Ceon URI Mapping/Ultimate SEO/SSU etc.).
I hope you can get this sorted soon.. I don't imagine it should take too long to trace the source of the problem and fix the Image Swapper module. Please post back on the Image Swapper thread (or here even) with your solution for others once you get things sorted, so that others can avoid the same problem.
I hope you can understand that I can't put a lot of time into analysing other modules to get them to work with static URIs.. if the answer is obvious I'll of course always say, but if, as in this case, I have to download a module and try out changing the code, that's a bit too much work for me.
Good luck getting this sorted!
All the best..
Conor
ceon
Hi Conor,
After installing the module, the main content doesn't show up, displays a zencart 404 page. Everything else is ok.
www.giftpackaging.com.au - 404 on front/main page
www.giftpackaging.com.au/shop/ - works
Michael
Hi,
Sorry but I don't know why that would be. There may be something wrong in your .htaccess file. Are you sure you have limited the rewrites to the shop directory?
All the best...
Conor
ceon
In the /shop/ directory there wasn't a .htaccess file, so I created one with below:
(although below admin is actually changed to another folder, i haven't written it below)
RewriteEngine On
# ONLY rewrite URIs beginning with /shop/
RewriteCond %{REQUEST_URI} ^/shop/.* [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} !^/shop/newadminfolder.* [NC]
# Don't rewrite editors directory
RewriteCond %{REQUEST_URI} !^/shop/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]
Hi,
That .htaccess file is fine.
What isn't is that you have your shop in the /shop directory but you are also trying to have / as the shop.. I don't know how you've done that but as DivaVocals says, why would you want the home page of your shop to be BOTH / and /shop ?
You'll need to rework your site so that / isn't your shop.
Or to redirect / to /shop
Or to move your store from /shop to /
That'll be you sorted then.
All the best...
Conor
ceon
Hi,
I agree with that! :)
All the best...
Conor
ceon
Hello Conor!
I have exacly the same problem mentioned here:
http://www.zen-cart.com/forum/showpo...&postcount=849
How did you solve that?
We are using version: 3.2.4
In our case the language switch worked fine for several weeks and since some hour ago we have this phenomenon and only with one category.
The language switchs with all the other categories and languages work fine.
Thank you!
sieg01
Hi,
I mentioned this in a previous post but this thread's so long now it's hard to find things! I'll probably start a new thread after the next release...
Basically I've rewritten the language support for the next version of the module. I'll release the new version whenever I can get the time to package it up.
All the best...
Conor
ceon
Hello,
My Zen cart version is 1.3.8a, and use this module ceon uri mapping seo, everything is fine, I saw my EZ-page is successfully to change in short name, but also broking links!
Is this problem relative to the "Rewrite on problem" , Any person can help!
Thank you
######## Leung
Hey Conor,
Thanks for creating this module!!
I have uploaded everything and it is in my modukle section in the admin, so thats all OK.
I am going through the set up procedure and am stuck on altering the htaccess files.
I am hosted with yahoo and they dont let htaccess files up on the site.
So when it comes to adding re-write. I have no idea what to do.
I spent all day working out how to dowlnload Apache so that is done. Is there any way you can help me sort this. I am assuming tha I HAVE TO RE-WRITE
cheers
Renate
Hi,
Glad you like the software!
To use the module you *must* be able to modify your VirtualHost directive *or* add the rules to a .htaccess file.
If your hosting doesn't support either of those technologies you *must* move hosts!
It's worth the effort to move if your host is so basic you don't have access to either of the above!
Hope that helps!
All the best...
Conor
ceon