website navigation menu in CPG problem with urls website navigation menu in CPG problem with urls
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

website navigation menu in CPG problem with urls

Started by chipw, June 30, 2016, 05:06:25 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

chipw

I have CPG working in my website so it is integrated into the site, but there is a problem with the links in my site navigation menu - there is the path of CPG inserted into every url. For example: the navigation menu has "home" (domain.org/),"blogs" (domain.org/previous_blogs.php),"music"(domain.org/my_songs.php), etc etc. But when I mouse-over links I see "domain.org/cpg", "domain.org/cpg/previous_blogs.php","domain.org/cpg/my_songs.php", etc. This is even if use the full url of each link, not relative paths. Same with the side panel and a few icons in that - I cannot get them to load. All the text loads, but not the icons and images in the sidebar panel.

There must be a setting someplace that I can change to get the links, images and icons of the website to work/appear properly alongside CPG?

Thanks

allvip


Αndré

Please also post which software you use for your "main" website.

chipw

my site is: wiegand.org

The site is hand-coded based on W3.CSS. For the CPG I followed the docs for modifying CPG to fit one's own website. Although by the time I was done I had removed much of the content of my website, and left it with only the top nav bar in place. But that is where the problem lies - in the urls. You will see that when you mouse-over or click on any of the site links.

Αndré

All links work as expected for me, if you're talking about
Quote
    Homepage
    Blogs
    Photos
    Music
    English Site
    Contact
    Auto Racing News
    Bicycle Racing News

chipw

Seriously? When I visit the site and click on any of those links, in my laptop and also on my phone, it get the typical 404 message =

Not Found

The requested URL /cpg/songs.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

And is after clearing the cache, restarting the browser, forced refresh of the site.

chipw

I don't know how it could have worked for you, but I just changed all the urls in the navbar so they are full paths, not relative paths. Now it does work as expected.