URL Rewrite paths.
meow
Joined: 2006-12-19
Posts: 26 |
![]() |
OK, mod_rewrite with Apache works, I have everything installed perfectly. For my Gallery 1 I used to have real nice short clean URLS like: http://domain.nl/albumname/imagename and you would get the page with the sized image, and that was it! My /albums folder was at the domain root for G1 How do I configure URL Rewrite to use the same short URLs for In the URL Rewrite plugin config I see the Migration G1 > G2 What do I do? G2 version is 2.2 RC1, and Apache gets to rewrite via htaccess. PHP 4.4.4 Bandwidth theft and image-stealing is fine with me. Thanks in advance. |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
please read: -------------- |
|
meow
Joined: 2006-12-19
Posts: 26 |
![]() |
I already did, but it does not answer my question(s). At all. G2 also makes the endings in the form of filename.jpg.html |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
unlike gallery 1, all gallery 2 URLs start with the gallery 2 folder. there's o web-accessible albums/ folder in g2. > They should be seen, preferably even indexed by google. g2 is not stopping search engines from indexing your pages and images and it's not stopping your visitors from viewing your images. > I cant enter %path% and %path% in two of the boxes at the same time. true. that's a limitation of the url rewrite module. by some custom mod_rewrite rules in the albums/ folder that you want you could achieve what you want. image urls starting with albums/. this involves php coding, there's no such configuration setting. -------------- |
|
meow
Joined: 2006-12-19
Posts: 26 |
![]() |
OK, so why use the URL Rewrite mapping option at all then? Here's what I would prefer instead: - To not use ANY G1 > G2 URL mapping, let Google etc. index all of the images anew. - To make the View image URL as short as possible, i.e. %path% for the main G2 URL. - Make the actual gallery data root the same as the G2 install root, so that folder The security issue is a non-issue for me: I'm not running a gallery to hide stuff, I'm running it to publish stuff. ;-) In that I don't really care how people access my content. If it's through remote direct links, or fancy-index httpd folders, that's fine with me. Most of them I block through SetEnv entries anyway. |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
> It all sounds way too complex and workaround-ish to me. what workaround? one of the goals of g2 was true access control. you can't achieve it without controlling file access through the application. and compared to g1, g2 has to deal with backwards compatbility with G1 urls. that's why it needs that g1->g2 url redirection rule. > - To not use ANY G1 > G2 URL mapping, let Google etc. index all of the images anew. then don't enable that url rewrite rule > - To make the View image URL as short as possible, i.e. %path% for the main G2 URL. works for me. but as mentioned earlier, currently you can't have more than 1 rule with the same pattern. so you have to disable another rule with the same pattern before you can change the view pattern this way. > - Make the actual gallery data root the same as the G2 install root, so that folder /albums/ is in the same physical location as it was before, -------------- |
|
meow
Joined: 2006-12-19
Posts: 26 |
![]() |
> > - Make the actual gallery data root the same as the G2 install root, Seems to me I can do this. I just give the data folder the absolute path of the gallery root dir. Sure, I might have to take out 1 htaccess file, but that's not a problem for me. |
|
djvibe
Joined: 2007-08-17
Posts: 1 |
![]() |
I completed the G1 --> G2 Migration guide and installed g2 in the same directory in which G1 was installed. - during the install everything was fine with no errors - when i did a search on google my old links looked like this - http://djvibe.com/gallery/view_photo.php?set_albumName=tiesto01&id=DCP01207 any help would be much appreciated.. cheers, Graham |
|