Jump to content

editing global.inc.php to make all links the same?


Recommended Posts

I've got a store almost ready for publication.

I built it on a shared server before the DNS was transferred.

While being built, the internal links all reflected that fact

IP#/serveraccount/store/

After doing the DNS transfer, most of the internal links now show as

domain/store

But some links, such as the site docs, still show the IP#/serveraccount/store as the link.

I've tried using a WYSWIG editor to do a global replace but that doesn't work because it can't read PHP.

In looking into CC, I think I understand that this is controlled in the file

store/includes/global.inc.php

specifically by the line that says

$glob['rootRel'] = '/~serveraccount/store/';

Question: If I change that to

$glob['rootRel'] = '/domain.com/store/';

will that do it? Or must I change other files, too?

Link to comment
Share on other sites

Guest Brivtech

I'm guessing other files could be affected as well - For instance template and styles files.

Really though, it's the global root rel that needs the attention because other file references usually work from that.

Link to comment
Share on other sites

I'm guessing other files could be affected as well - For instance template and styles files.

Really though, it's the global root rel that needs the attention because other file references usually work from that.

Well, I edited the file, replacing the line as contemplated - and it screwed up all the category images.

To see the issue, visit

http://qcigars.com

and note the links as you roll your cursor over the links in the Site Docs box. Now, in Shop By Category, click on "Q Collection" and roll your cursor over the category images and note the links.

ANyone know how to fix that?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...