![]() |
|
Changing extension - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Changing extension (/thread-1071.html) |
Changing extension - SubJunk - 2007-01-18 Hi guys, Changing extension - SubJunk - 2007-01-19 Surely it would be easy to do? The problem is that search engines - rightly - don't see .jpg extensions as pages, so when the rewrite rule calls a page .jpg instead of .php, which is what it was originally of course, it isolates all image pages. By image pages I don't mean the full sized images, I mean the page generated by image.php. Changing extension - DarrellD - 2007-01-19 Well, I tried to play with it this morning (although I have no experience with mod_rewrite) but I couldn't figure it out. Just be patient, someone on here who knows might be able to help you out. Changing extension - SubJunk - 2007-01-20 Okay cool, thanks for trying anyway GameDudeX Changing extension - SubJunk - 2007-02-11 Just bumping this, can someone please try? I would be so grateful! Changing extension - SubJunk - 2007-02-13 I can pay someone to do it? Is there anyone here who can do it if I pay them, or do you know of anyone you can refer me to? Changing extension - trisweb - 2007-02-13 Wow, I never thought of that problem with search engines... I'll look into generalizing the URL output so you can change it to whatever you want. Changing extension - SubJunk - 2007-02-13 That would be great, thanks ASAP would be good, you can email or message me with what you expect as payment. I really appreciate it. Changing extension - jayray999 - 2007-02-13 Is this at all relevant? http://www.google.com/support/webmasters/bin/answer.py?answer=34431 Changing extension - trisweb - 2007-02-13 Could be, but I think SubJunk is right, they probably won't even consider .jpg url's as pages at all. We should have some way to put something after the .jpg, like .html or .php or .anythingyouwant. :-) Would that work SubJunk? And no payment required, I don't take bribes ;-) I'll do it for the project because I think it's necessary and useful. If you feel you want to donate, feel free to do so at any time using the link on the front page. :-) Changing extension - SubJunk - 2007-02-13 That's perfect. I think Google will recognize "page.jpg.html". You're a humble man! Changing extension - SubJunk - 2007-02-16 Don't mean to be pushy, but do you have any estimation of when it will be done? Changing extension - trisweb - 2007-02-16 Don't mean to be pushy, but no, I do not. :-) Changing extension - trisweb - 2007-02-16 Checked into SVN, http://www.zenphoto.org/trac/changeset/365 It'll be in 1.0.8 in a week or less, before then you're welcome to use SVN code, it's fairly stable right now. Here's the new config entry: `// If mod_rewrite is true above, zenphoto's image page URL's usually end in .jpg, // set this if you want something else appended to the end (helps search engines). // Examples: .html, .php, /view, etc. // Note that you shouldn't name albums with this suffix on the end. $conf['mod_rewrite_image_suffix'] = '';` Changing extension - trisweb - 2007-02-16 There's an SVN test gallery up here with some cool sub-albums and this new image-page-url suffix feature, check it out: http://www.trisweb.com/tests/zenphoto-svn/ This new version is super stable and fast, I'm liking it a lot. Oh, also, the way I did the path suffix, it's "backwards-compatible" with any previous links to the image page. So both of these work, even though the latter is now used in the gallery links. http://www.trisweb.com/tests/zenphoto-svn/Random/Yosemite/yosemite_03XL.jpg So all of you with large galleries and lots of links to them need not worry if you want to add a suffix, just do it! It's good for search engines :-) Changing extension - SubJunk - 2007-02-16 Cool! Thanks. How does this SVN thing work? Do I copy the code from http://www.zenphoto.org/trac/changeset/365 into the 1.0.7 code? Are the numbers on the left the line numbers? Changing extension - SubJunk - 2007-02-16 That was a stupid question, figured it out Changing extension - trisweb - 2007-02-16 SVN is a package deal, you have to get the whole thing with an SVN client like this:
Changing extension - SubJunk - 2007-02-16 Oh okay, well I just downloaded the zip of the 3 files on that page and replaced them with the existing ones and the .jpg.html thing works. Thanks |