From: Mike xclbur5150@yahoo.com
I have an old website which was written in MS Frontpage, and I created the wiki inside the main directory, and made a link to it from the home page. Now that I have the wiki, the old site is pointless. How would I go about removing the old site and setting the wiki as the home page?
Re-direct your home page to your wiki home using HTML. Here's index.php from http://www.EcoReality.org , for example. You may be able to use this verbatim.
<html><head> <META HTTP-EQUIV="refresh" CONTENT="0; URL=/wiki"> </head><body></body></html>
:::: God told me to strike at Al Qaeda and I struck them. And then he instructed me to strike at Saddam, which I did. With the might of God on our side we will triumph. -- George W. Bush :::: I believe that I am acting in accordance with the will of the Almighty Creator. -- Adolf Hitler :::: Never forget that everything Hitler did in Germany was legal. -- Dr. Martin Luther King :::: Jan Steinman http://www.Bytesmiths.com
Looks like I messed something up. Any idea what would cause this error?
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/drsecret/public_html/wiki/includes/Exception.php on line 139
I copied the code you posted and replaced my index.html file with that. I then tested the page and it redirected me perfectly. Then I deleted all the files and folders that were associated with the old website. Then I checked again and instead of the redirect I got this error code. Other then the fact that I'm getting an error code after deleting stuff, I was certain that nothing I deleted was related to the wiki.
Any ideas? Thanks Mike
Jan Steinman Jan@Bytesmiths.com wrote:
From: Mike
I have an old website which was written in MS Frontpage, and I created the wiki inside the main directory, and made a link to it from the home page. Now that I have the wiki, the old site is pointless. How would I go about removing the old site and setting the wiki as the home page?
Re-direct your home page to your wiki home using HTML. Here's index.php from http://www.EcoReality.org , for example. You may be able to use this verbatim.
:::: God told me to strike at Al Qaeda and I struck them. And then he instructed me to strike at Saddam, which I did. With the might of God on our side we will triumph. -- George W. Bush :::: I believe that I am acting in accordance with the will of the Almighty Creator. -- Adolf Hitler :::: Never forget that everything Hitler did in Germany was legal. -- Dr. Martin Luther King :::: Jan Steinman
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
--------------------------------- No need to miss a message. Get email on-the-go with Yahoo! Mail for Mobile. Get started.
On 11/06/07, Mike xclbur5150@yahoo.com wrote:
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/drsecret/public_html/wiki/includes/Exception.php on line 139
That is a classic sign that PHP 4 is being used to parse the file, as opposed to PHP 5. Exceptions and throwing were introduced somewhere along the line in PHP 5, and the PHP 4 parser doesn't understand them.
Rob Church
I think I realized what happened. I accidentilly deleted .htaccess from the www folder, and I can't get it back. Is there a way to create a new .htaccess file which will allow my site to work again?
Thanks Mike
Jan Steinman Jan@Bytesmiths.com wrote: > From: Mike
I have an old website which was written in MS Frontpage, and I created the wiki inside the main directory, and made a link to it from the home page. Now that I have the wiki, the old site is pointless. How would I go about removing the old site and setting the wiki as the home page?
Re-direct your home page to your wiki home using HTML. Here's index.php from http://www.EcoReality.org , for example. You may be able to use this verbatim.
:::: God told me to strike at Al Qaeda and I struck them. And then he instructed me to strike at Saddam, which I did. With the might of God on our side we will triumph. -- George W. Bush :::: I believe that I am acting in accordance with the will of the Almighty Creator. -- Adolf Hitler :::: Never forget that everything Hitler did in Germany was legal. -- Dr. Martin Luther King :::: Jan Steinman
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
--------------------------------- Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more.
On 11/06/07, Mike xclbur5150@yahoo.com wrote:
I think I realized what happened. I accidentilly deleted .htaccess from the www folder, and I can't get it back. Is there a way to create a new .htaccess file which will allow my site to work again?
The advice at http://www.mediawiki.org/wiki/User:Robchurch/Getting_PHP_5_on_a_cheap_host#C... might be applicable to this configuration...
Rob Church
That fixed it! Thanks alot!
Mike
Rob Church robchur@gmail.com wrote: On 11/06/07, Mike wrote:
I think I realized what happened. I accidentilly deleted .htaccess from the www folder, and I can't get it back. Is there a way to create a new .htaccess file which will allow my site to work again?
The advice at http://www.mediawiki.org/wiki/User:Robchurch/Getting_PHP_5_on_a_cheap_host#C... might be applicable to this configuration...
Rob Church
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
--------------------------------- Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games.
mediawiki-l@lists.wikimedia.org