1
bloodlust
Auto forward file...
  • 2005/5/11 6:44

  • bloodlust

  • Just popping in

  • Posts: 8

  • Since: 2005/1/31


how do you "auto-forward" to XOOPS when its not installing in the root directory? when you type in your url in the browser it should automatically go to "www.yourURL.com/modules/news" but mine just loads up the index page that shows the "Parent Folder" and the "xoops" folder. any ideas?

2
Kumonryu_Kid
Re: Auto forward file...

There are probably a hundred ways to do this, but this is the simplest that I know of.

Create a file "index.html" in the directory that you are pointed at by default. In it, create similar to the following:

<html>
<head>
<meta http-equiv="refresh" content="0;URL=http://my/path/to/go/to">
</head>
<body>
Redirecting.... Please wait
</body>

As soon as this page loads, (which it should by default) then the meta refresh is activated (wait time of 0) and the browser is redirected to the page specified in the URL= part of the tag. If the server and connection is quick enough, the text "Redirecting..." will never be visible.

Hope this helps,
Gareth Wilden

3
Mithrandir
Re: Auto forward file...

or an index.php file with this content
<?php
header
('location: xoops/');
?>

4
Kumonryu_Kid
Re: Auto forward file...

And I thought my 7 lines of code was pretty compact

Login

Who's Online

88 user(s) are online (56 user(s) are browsing Support Forums)


Members: 0


Guests: 88


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