1
xebra
xoops in a folder, index.php in root
  • 2006/2/13 14:37

  • xebra

  • Just popping in

  • Posts: 37

  • Since: 2004/7/31


Hello-

I'd like to install XOOPS with everything except home.php being in its own folder. What do I need to edit to allow this?

2
NeoFenix
Re: xoops in a folder, index.php in root
  • 2006/2/13 15:06

  • NeoFenix

  • Just popping in

  • Posts: 31

  • Since: 2005/7/8 3


either way, just install XOOPS in that folder, and the index.php (a new one, in the parent, not from xoops) should have a redirect system, like a http header, or a meta-refresh or something, don't need to use index.php from xoops...

.... home.php? what is that?

Or maybe I didn't understand you LOL

PD: if you want to move a working site, you only need to edit mainfile.php, don't forget to leave it in 444 when you finish

3
xebra
Re: xoops in a folder, index.php in root
  • 2006/2/24 21:56

  • xebra

  • Just popping in

  • Posts: 37

  • Since: 2004/7/31


yeah, I pretty much botched that question.

Let me try again.

I already have a lot files and folders in my site, and XOOPS will add many more. I want to keep the XOOPS files together, in a XOOPS folder. However, I want the index.php file from XOOPS to be outside the XOOPS folder, and in public_html. Preferably without redirects. Is there a way to accomplish this somehow?

I tried just changing the paths in index.php, but get this error:

XOOPS path check: Script is not inside XOOPS_ROOT_PATH and cannot run.

Thanks

4
Lance_
Re: xoops in a folder, index.php in root
  • 2006/2/25 0:50

  • Lance_

  • Home away from home

  • Posts: 983

  • Since: 2004/1/12


You can't do it that way directly.

You can probably find a way to rewrite the url with .htaccess but honestly a quick redirect is the easiest way to go.

I install all my XOOPS sites under folders, very often ones calles /cms, so my index.php in the root contains:
<? 

header("Location: /cms/"); 

?>


Cheers.
GDL-Web.com :: Website development.
Xoopslance.com::Freelancing and Projects
thelionsden-arena.net:: Clan/League/Ladder Hosting

5
xebra
Re: xoops in a folder, index.php in root
  • 2006/2/25 12:27

  • xebra

  • Just popping in

  • Posts: 37

  • Since: 2004/7/31


ok. Thanks Lance. I'll do it that way.

6
skenow
Re: xoops in a folder, index.php in root
  • 2006/2/25 16:55

  • skenow

  • Home away from home

  • Posts: 993

  • Since: 2004/11/17


You can do it without a redirect - edit the paths in your index.php, but also edit the XOOPS_URL and XOOPS_ROOT_PATH in mainfile.php (mine is is /xoops folder)

Login

Who's Online

210 user(s) are online (148 user(s) are browsing Support Forums)


Members: 0


Guests: 210


more...

Donat-O-Meter

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

Latest GitHub Commits