1
falke
Redirection of a Xoops site?
  • 2006/3/23 10:08

  • falke

  • Friend of XOOPS

  • Posts: 158

  • Since: 2004/4/25


While I am rebuilding one of my xoops-sites I would like to redirect my visitors to another of my sites. What is the best way to do this to get the quickest redirection as possible?

I might have to reinstall this xoopssite so i would prefer a solution outside of XOOPS itself.
regards/falke
.........

2
zyspec
Re: Redirection of a Xoops site?
  • 2006/3/23 10:25

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


The easiest way is to rename your XOOPS index.php file to something else (say xoops_index.php) and then just create a index.html page with the following:
DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<
html>
<
head>
<
title>Your Page Titletitle>
<
meta http-equiv="REFRESH" content="0;url=http://www.the-domain-you-want-to-redirect-to.com">HEAD>
<
BODY>
Please wait while we redirect you to our other site.
BODY>
HTML>

Once you're ready to "restore" your XOOPS site then all you have to do is rename the xoops_index.php file back to index.php, delete index.html and you're "back" to where you started.

NOTE: Renaming the index.php file may not be necessary depending on the server settings as the server may execute .html files before .php but the above will work in either case.

Another way to accomplish this is to clone your default template set and make it active. Then edit the cloned system_siteclosed.html file by adding
<meta http-equiv="REFRESH" content="0;url=http://www.the-domain-you-want-to-redirect-to.com">HEAD>
just before the BODY tag.

3
rabideau
Re: Redirection of a Xoops site?
  • 2006/3/23 11:14

  • rabideau

  • Home away from home

  • Posts: 1042

  • Since: 2003/4/25


My personal favorite way is to make a change at the host control panel (I use cpanel). If you'd like to see an example of how that works you can go to:

http://samidiabmd.com which will redirect you to http://drdiab.info

I have no code on either site simply a redirect (auto-forward) at the host.
Pax vobiscum,
...mark

may the road rise to meet your feet!

http://treemagic.org

Login

Who's Online

229 user(s) are online (159 user(s) are browsing Support Forums)


Members: 0


Guests: 229


more...

Donat-O-Meter

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

Latest GitHub Commits