Solved

PHP Nuke

Posted on 2002-03-21
4
290 Views
Last Modified: 2006-11-17
Hello

I use php nuke 5.1 as a forum for my apache hosted web site. I'd like to access the forum from an another web page and not directly when typing my url.

Eg : to access the forum I have to type http://myhost.fr/nuke/

and I'd like to type http://myshost.fr/, to access a web page and to access the forum from a link...

How to do ?

-----------------------

Additional question:

  Is it possible to run several php nuke forums on one host. I can create several web site with my apache server (http://myhost.fr/~site1 , http://myshost.fr/~site2 ...) I'd like to provide a forum for each site. How can I do this ?
0
Comment
Question by:Pleinpopossum
  • 2
  • 2
4 Comments
 
LVL 5

Expert Comment

by:dkjariwala
ID: 6885092
I am not sure what you want to do,

But if you want to type http://myshost.fr/ and go to

http://myhost.fr/nuke,

You can have an index.htm file at document root for http://myshost.fr reading
<html>
<head>
<title>Redirecting</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="refresh" content="0;URL=http://myhost.fr/nuke/">
</head>

<body bgcolor="#FFFFFF" text="#000000">

</body>
</html>


or you can have page which has link to the forum like,

<html>
<head>
<title>Redirecting</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="refresh" content="0;URL=http://myhost.fr/nuke/">
</head>

<body bgcolor="#FFFFFF" text="#000000">
<a href="http://myhost.fr/nuke">Click to go to forums.</A>
</body>
</html>

Still I am not sure this is what you want to have.
JD

0
 

Author Comment

by:Pleinpopossum
ID: 6885113
Not really...

Noone must be able to access the url http://myhost.fr/nuke/ without clicking on the forum link of my web page. The scheme of my web site would be:

* a welcome page
* some links and informations
--> when you click on the forum link you go to the forum.

I probably have to change the location or someting else in my config files but I don't know what and where to do it...

I'm hosting several web sites. If I let the forum on the "root" of my sites, the forum would be considered beeing the same for each site.

http://myhost.fr/~site1/nuke1/
http://myhost.fr/~site2/nuke2/
http://myhost.fr/~siten/nuken/

would be perfect

Thanks
0
 
LVL 5

Accepted Solution

by:
dkjariwala earned 300 total points
ID: 6885162
Okie, got it.

What you can do is,

in your forum's index page, I mean the file which gets executed when you call

http://myhost.fr/nuke/ . Lets say it is index.php so that

http://myhost.fr/nuke/  transforms into

http://myhost.fr/nuke/index.php

Now add following code in index.php

<?

if(empty($HTTP_REFERER) or $HTTP_REFERER != "http://myhost.fr")
     header("Location:http://myhost.fr");

So if the referer is EMPTY or It is not your homepage, person would be redirected to homepage.

JD
0
 

Author Comment

by:Pleinpopossum
ID: 6965211
It doesn't solve my problem but I found an another solution :-)
Thank you very much for having tried.

Cheers
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Consider the following scenario: You are working on a website and make something great - something that lets the server work with information submitted by your users. This could be anything, from a simple guestbook to a e-Money solution. But what…
This article discusses four methods for overlaying images in a container on a web page
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now