Default URL for a domain

What do I need to do to make

http://mywiki/ go to

http://mywiki/mediawiki-1.6.10/index.php/Main_Page

Do I need to use mod_rewrite ?

I basically want to do what happens when you type

http://en.wikipedia.org/

and get

http://en.wikipedia.org/wiki/Main_Page
David Johnson [ Mo, 03 September 2007 12:21 ] [ ID #1811250 ]

Re: Default URL for a domain

Post removed (X-No-Archive: yes)
Notifier Deamon [ Mo, 03 September 2007 12:44 ] [ ID #1811251 ]

Re: Default URL for a domain

On Sep 3, 11:44 am, Davide Bianchi <davideyeahs... [at] onlyforfun.net>
wrote:
> On 2007-09-03, David Johnson <david.john... [at] emeekl.com> wrote:
>
>
>
> > What do I need to do to make
>
> >http://mywiki/go to
> >http://mywiki/mediawiki-1.6.10/index.php/Main_Page
>
> > Do I need to use mod_rewrite ?
>
> You can, or you can simply put an index.html in the root directory
> to do the redirect.
>
> Davide
>
> --
> I'm a geek with a journalism degree. I suppose that makes me overqualified
> for a job with ZDNet. Darn.
> -- From a Slashdot.org post

not sure if my ast post worked, google for "human readable urls" make
sure the right HTTP status codes are returned, (not just the right
response body but also the headers) make sure you are comfortable
writing a php request_url handler/controller script.
shimmyshack [ Mo, 03 September 2007 15:22 ] [ ID #1811256 ]

Re: Default URL for a domain

* shimmyshack wrote:
> On Sep 3, 11:44 am, Davide Bianchi <davideyeahs... [at] onlyforfun.net>
> wrote:
>> On 2007-09-03, David Johnson <david.john... [at] emeekl.com> wrote:
>>
>>
>>
>>> What do I need to do to make
>>> http://mywiki/go to
>>> http://mywiki/mediawiki-1.6.10/index.php/Main_Page
>>> Do I need to use mod_rewrite ?
>> You can, or you can simply put an index.html in the root directory
>> to do the redirect.
>>
>> Davide
>>
>> --
>> I'm a geek with a journalism degree. I suppose that makes me overqualified
>> for a job with ZDNet. Darn.
>> -- From a Slashdot.org post
>
> not sure if my ast post worked, google for "human readable urls" make
> sure the right HTTP status codes are returned, (not just the right
> response body but also the headers) make sure you are comfortable
> writing a php request_url handler/controller script.
>

I just created an index.html containing:

<META HTTP-EQUIV="Refresh" Content="0;
URL=http://mywiki/mediawiki-1.6.10/index.php/Main_Page">
David Johnson [ Mo, 03 September 2007 16:36 ] [ ID #1811258 ]

Re: Default URL for a domain

* David Johnson wrote:
> * shimmyshack wrote:
>> On Sep 3, 11:44 am, Davide Bianchi <davideyeahs... [at] onlyforfun.net>
>> wrote:
>>> On 2007-09-03, David Johnson <david.john... [at] emeekl.com> wrote:
>>>
>>>
>>>
>>>> What do I need to do to make
>>>> http://mywiki/go to
>>>> http://mywiki/mediawiki-1.6.10/index.php/Main_Page
>>>> Do I need to use mod_rewrite ?
>>> You can, or you can simply put an index.html in the root directory
>>> to do the redirect.
>>>
>>> Davide
>>>
>>> --
>>> I'm a geek with a journalism degree. I suppose that makes me overqualified
>>> for a job with ZDNet. Darn.
>>> -- From a Slashdot.org post
>> not sure if my ast post worked, google for "human readable urls" make
>> sure the right HTTP status codes are returned, (not just the right
>> response body but also the headers) make sure you are comfortable
>> writing a php request_url handler/controller script.
>>
>
> I just created an index.html containing:
>
> <META HTTP-EQUIV="Refresh" Content="0;
> URL=http://mywiki/mediawiki-1.6.10/index.php/Main_Page">

Is that bad?!
David Johnson [ Mo, 03 September 2007 21:42 ] [ ID #1811265 ]

Re: Default URL for a domain

> What do I need to do to make

> http://mywiki/ go to

> http://mywiki/mediawiki-1.6.10/index.php/Main_Page

> Do I need to use mod_rewrite ?

Need? No. Will it work? I don't know, but this looks simpler.

Line in .htaccess:
DirectoryIndex mediawiki-1.6.10/index.php/Main_Page
--
Crash
Running: Windows 2000 Pro - IIS 5 - Apache 2.2.4 - PHP 5.2.1 - Perl 5.8.8
dvader [ Fr, 07 September 2007 15:14 ] [ ID #1814784 ]
Webserver » alt.apache.configuration » Default URL for a domain

Vorheriges Thema: sslv3/internet explorer issue
Nächstes Thema: using XAMPP with OOffice installed on Windows XP