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:
http://s91840322.onlinehome.us/gallery2/

I have some different domains though that point directly to that directory such as:
http://mdorison.name/

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?

 
lukas334e

Joined: 2005-07-22
Posts: 11
Posted: Wed, 2005-09-14 19:31

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

 
mdorison

Joined: 2005-09-14
Posts: 5
Posted: Wed, 2005-09-14 19:34

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.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Wed, 2005-09-14 19:44

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.

 
pelle
pelle's picture

Joined: 2004-12-10
Posts: 389
Posted: Thu, 2005-09-15 11:37

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.

 
mdorison

Joined: 2005-09-14
Posts: 5
Posted: Thu, 2005-09-15 16:33

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.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Fri, 2005-09-16 02:43

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?

 
mdorison

Joined: 2005-09-14
Posts: 5
Posted: Fri, 2005-09-16 16:50

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.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sat, 2005-09-17 02:24

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.

 
mdorison

Joined: 2005-09-14
Posts: 5
Posted: Sat, 2005-09-17 15:03

That worked perfectly. Thank you!

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2005-09-17 15:36
 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sat, 2005-09-17 15:48

thank you valiant.