confused route directory ?? confused route directory ??
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

confused route directory ??

Started by ir803, May 18, 2007, 03:32:14 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ir803

I am working on this site http://www.ffotowales.co.uk/ When I first installed CPG and uploaded the files I put the directory straight in to the main /folder on the host space, not in a gallery or cpg 1410 folder. This worked fine and when you type www.ffotowales.co.uk you get the site up fine....BUT I have noticed when I click on add to lightbox it takes two attempts to get an image to add. Then if you click remove from lightbox under the actual image it works first time BUT I suddenly noticed it fowarded me on to a page with an address missing the www. from that point on everypage was missing the www. in the address it also meant that if you add or remove image to the lightbox at http://www.ffotowales.co.uk/thumbnails.php?album=favpics, you don't get the same images at http://ffotowales.co.uk/thumbnails.php?album=favpics . I hope this is not too confusing to understand, but I think either I have changed something or preset navigation is not set up for a site sitting outside the default folders on the download cpg zip file.
The Site is very nearly finished but obviously I can't have it running "two" lightboxes at the same time.
Any ideas please?

Joachim Müller

Use .htaccess to redirect all your users accessing your site using www.yoursite.tld to yoursite.tld. Has been discussed many times over.
Not related to install, moving accordingly.

ir803

Quote from: GauGau on May 18, 2007, 04:10:56 PM
Use .htaccess to redirect all your users accessing your site using www.yoursite.tld to yoursite.tld. Has been discussed many times over.
Not related to install, moving accordingly.

OK sorry mate but this is way over my head, I've searched for redirecting threads and htaccess threads, also searched the internet for htaccess tips it's a bit confusing and I can't see anything that looks like my problem but then I'm not familiar with the code used and I'm worried if I put the wrong code/options in the htaccess file I'll screw up my CPG OR my server. SO can anyone point me to something specificly related to this problem or tell me what I need to write in the HTaccess file ?

Nibbler


RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.ffotowales\.co\.uk$
RewriteRule (.*) http://ffotowales.co.uk/$1 [R=301,L]


If anything breaks just remove the code.

ir803

Thanks nibbler, works perfectly  ::)