1
Tachikoma
Rebuilding the internal links database?
  • 2006/1/24 19:30

  • Tachikoma

  • Just popping in

  • Posts: 4

  • Since: 2006/1/24


My site's URL is:

http://www.games-tm.co.uk

My server share that the site is installed on is:

http://72.29.92.31/~gamesit/

XOOPS was installed before the DNS had been updated properly, so it hashttp://72.29.92.31/~gamesit/whatever in it's internal links database (if there is such a thing) for all the pages/modules/etc.

Obviously this doesn't look very good, and it throws up the HTTP_REFERER error when most of the sites members login.

Is there any way to rebuild the database so that all the internal links are right? so I have for example:

http://www.games-tm.co.uk/modules/newbb/

Instead of:

http://72.29.92.31/~gamesit/modules/newbb/

Or, if not, whats the easiest way to backup my users/settings/CBB posts/etc and restore them on a fresh install, where the internal links are right. Obviously I want this as a last case option, due to the amount of time it will take to set everything again.

Many thanks

Ash

2
banned
Re: Rebuilding the internal links database?
  • 2006/1/24 19:57

  • banned

  • Not too shy to talk

  • Posts: 159

  • Since: 2004/5/16


Open xoops_root_path/mainfile.php with a text editor and redefine XOOPS_URL

3
Tachikoma
Re: Rebuilding the internal links database?
  • 2006/1/24 21:42

  • Tachikoma

  • Just popping in

  • Posts: 4

  • Since: 2006/1/24


Ah you are a good 'un, many thanks!

I will try it later, gotta put the baby to bed...

Will that fix the HTTP_REFERE error as well? I assume thats because the URL changes drastically when you log in, and the firewall thinks it's a hijacked page or something?

*edit*

Changed it, and it didn't make any difference, the internal links still point to the share name rather than the proper URL...

4
banned
Re: Rebuilding the internal links database?
  • 2006/1/24 23:56

  • banned

  • Not too shy to talk

  • Posts: 159

  • Since: 2004/5/16


I assume that before you got this line, in the mainfile.php

define('XOOPS_URL', 'http://72.29.92.31/~gamesit');

Now, have you changed it in this?

define('XOOPS_URL', 'http://www.games-tm.co.uk');


And.. are you sure that you've saved and reuploaded the changed mainfile.php?

5
Tachikoma
Re: Rebuilding the internal links database?
  • 2006/1/25 7:33

  • Tachikoma

  • Just popping in

  • Posts: 4

  • Since: 2006/1/24


Copied and pasted from the edited file:

define('XOOPS_URL', 'http://games-tm.co.uk');

Tried it with www. as well, still didn't do anything, and of course I uploded it ;)

*edit*

It's working now, I turned the site off, then re-uploaded it, as the upload didn't work even though it said it had.

Thanks again, and sorry, I should have checked the uploaded file earlier! :blush:

Login

Who's Online

154 user(s) are online (127 user(s) are browsing Support Forums)


Members: 0


Guests: 154


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits