I don't understand. The file index.php is not visible to the internet (it's in a subdirectory called mediawiki) and certainly won't be seen by anyone typing wiki.1611kjb.org As I understand it, the standard is for a browser to look for index.html and then default.html and those must be in the root directory. I was under the impression that if I put a file called .htaccess in the root directory for the website (i.e., /wiki.1611kjb.org), the browser would follow that file. I found some directions on a website that implied I should create the file with the following inside:
Redirect permanent /wiki.1611kjb.org/ http://wiki.1611kjb.org/mediawiki/index.php?title=Main_Page But it doesn't work. If I remove index.html, default.html and .htaccess from the root, then when someone types in the domain name, they see my directory structure. Consequently, how would I get a browser accessing my site to read a file called index.php buried in a subdirectory (for that matter, if they could see that file, I wouldn't need a redirect, they'd already be accessing the file I'm trying to redirect to. ---Mike -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bilal Abdul Kader Sent: Saturday, November 22, 2008 7:14 PM To: Wikimedia developers Subject: Re: [Wikitech-l] Redirect use index.php inside that file <?php header("Location:http://wiki.1611kjb.org/mediawiki/index.php?title=Main_Page "); ?> bilal On Sat, Nov 22, 2008 at 7:00 PM, Praising Jesus <[EMAIL PROTECTED]> wrote: > This is more of a general setup question than Wikimedia specific, but I'm > certain you folks will have an answer. > > My domain is 1611kjb.org. I created a sub domain called wiki.1611kjb.org > > I want people, when they type in wiki.1611kjb.org to be redirected to > > http://wiki.1611kjb.org/mediawiki/index.php?title=Main_Page > > For the moment, I am using an index.html file with a refresh in it, but not > all browsers support that method. I have been trying to do it with an > .htaccess file, but I can't seem to get it to work. The sight is hosted on > an Apache server running Linux with FrontPage Extensions activated. > > What is the best way to get the redirect to happen correctly? > > ---Mike > > > _______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l _______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l