Default URL for a domain

This is a discussion on Default URL for a domain within the Apache Web Server forums, part of the Web Server and Related Forums category; What do I need to do to make http://mywiki/ go to http://mywiki/mediawiki-1.6.10/index.php/...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-03-2007
David Johnson
 
Posts: n/a
Default 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
  #2 (permalink)  
Old 09-03-2007
shimmyshack
 
Posts: n/a
Default Re: Default URL for a domain

On Sep 3, 11:44 am, Davide Bianchi <davideyeahs...@onlyforfun.net>
wrote:
> On 2007-09-03, David Johnson <david.john...@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.

  #3 (permalink)  
Old 09-03-2007
David Johnson
 
Posts: n/a
Default Re: Default URL for a domain

* shimmyshack wrote:
> On Sep 3, 11:44 am, Davide Bianchi <davideyeahs...@onlyforfun.net>
> wrote:
>> On 2007-09-03, David Johnson <david.john...@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">
  #4 (permalink)  
Old 09-03-2007
David Johnson
 
Posts: n/a
Default Re: Default URL for a domain

* David Johnson wrote:
> * shimmyshack wrote:
>> On Sep 3, 11:44 am, Davide Bianchi <davideyeahs...@onlyforfun.net>
>> wrote:
>>> On 2007-09-03, David Johnson <david.john...@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?!
  #5 (permalink)  
Old 09-07-2007
\Crash\ Dummy
 
Posts: n/a
Default 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



 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:48 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0