Alternate URL No Images Problem
mdorison
Joined: 2005-09-14
Posts: 5 |
Posted: Wed, 2005-09-14 18:43 |
When I access my site from its primary URL everything seems fine: I have some different domains though that point directly to that directory such as: When I try to access the site from there none of my images load and when I click on any licks I get a 500 error. I could always access G1 in this manner. Is there a fix for this? |
|
Posts: 11
you have misconfigured the paths...
for example the gallery is search for the css at http://mdorison.name/gallery2/modules/icons/iconpacks/paularmstrongdesigns/icons.css when accessed over http://mdorison.name, the correct url would be http://mdorison.name/modules/icons/iconpacks/paularmstrongdesigns/icons.css.
please check you redirectconfig
Posts: 5
All I did was set the webserver to point to the gallery2 directory. Is this what you are saying or are you talking about an option in G2? Thanks.
Posts: 16504
You need to pick one. You can't have one domain pointing directly at your G2 directory and another pointing to the parent directory. The other problem is you need to either not use URL Rewrite or you need to add every every domain to the referrers list on the URL Rewrite setup page.
Posts: 389
Besides the point nivekiam makes, you cannot have URL Rewrite active since it saves the path to your G2. Hence, if you want URL Rewrite - pick one access point.
Posts: 5
I tried pointing them all to the gallery2 directory and disabling URL rewrite but that created a different problem. When I pointed the one remaining root domain to the gallery2 directory it showed the web page graphics but not my images. Take a look here:
http://s91840322.onlinehome.us/
When clicking on any of the galleries I get 404 errors. It's obviously a linking problem as stated before but I am just confused why this would be the case. I had g1 set up exactly the same way with the domain pointing to its directory (gallery) and everything worked fine.
Posts: 16504
I don't understand, it appears you haven't changed a thing, this link still works http://s91840322.onlinehome.us/gallery2/main.php, this link http://mdorison.name/, still doesn't and of course http://s91840322.onlinehome.us/ is going to give you a 403 error if you don't have any index file there and the server is configured to not allow directory browsing.
Which domain do you want to use to access your G2 install?
Posts: 5
I switched it back so I could at least access it somehow. I want mdorison.name to point to the gallery2 directory. Which it currently does the site just doesn't work at that location.
Posts: 16504
O.k. Go to http://s91840322.onlinehome.us/gallery2/main.php and go to Site Admin > Modules and disable and uninstall the URL Rewrite module.
Now, backup and delete your .htaccess file that resides in your gallery2 directory
Now go back to Site Admin > Maintenance and clear the template and database cache.
Now you should be able to access mdorison.name being able to see the thumbnails and pictures.
Posts: 5
That worked perfectly. Thank you!
Posts: 32509
pelle, nivekiam: i just created a new FAQ for this issue:
http://codex.gallery2.org/index.php/Gallery2:faq#I_can.27t_access_G2_from_my_vHost_or_subdomain.2C_what.27s_wrong.3F
Posts: 16504
thank you valiant.