Start Page

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
captaincrash
Posts: 14
Joined: Sat 17. Apr 2004, 03:00

Start Page

Post by captaincrash »

Hey, how can I redirect the start page to something other than the first arcticle in the hiearchy.
colech
Posts: 178
Joined: Thu 25. Mar 2004, 01:01
Location: Washington, USA
Contact:

Post by colech »

Try this simple and dirty approach:
<meta http-equiv="REFRESH" content="0;url=http://www.the-domain-you-want-to-redirect-to.com"> is the part that actually does the redirecting.

The number preceding the url (in this case zero) tells the browser the number of seconds to wait before redirecting to the new url.

You could set this to 5 and add some optional text to your page - something like:

"Please wait while we redirect you to our new site".

That's it! Just copy the code, save it (i.e. save as index.html) and your html redirect will work perfectly.
while !sleeping {
work_on(phpwcms);
}
// Check out our web development company!
// "Your business has character... don't hide it!"
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

Don't forget that if you haven't deleted "index.html" you can modify and use it for such purposes, too :wink:
Pappnase

Re: Start Page

Post by Pappnase »

captaincrash wrote:Hey, how can I redirect the start page to something other than the first arcticle in the hiearchy.
hello

create an an article in the the root of the index site structure, and there you have the field "redirect" there you can add e.g. index.php?alias so you can redirect to every stucture level you want!
User avatar
Oliver Georgi
Site Admin
Posts: 9928
Joined: Fri 3. Oct 2003, 22:22
Location: Dessau-Roßlau
Contact:

Post by Oliver Georgi »

always use full URL in redirect fields like
"http://www.mysite.com/index.php?start"

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn
captaincrash
Posts: 14
Joined: Sat 17. Apr 2004, 03:00

Post by captaincrash »

Thanks guys, as always you are all a great help.
Post Reply