Apache Server configuration support - Default URL for a domain

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > September 2007 > Default URL for a domain





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Default URL for a domain
David Johnson

2007-09-03, 11:22 am


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
Davide Bianchi

2007-09-03, 11:22 am

On 2007-09-03, David Johnson <david.johnson@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
shimmyshack

2007-09-03, 11:22 am

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

David Johnson

2007-09-03, 11:22 am

* shimmyshack wrote:
> On Sep 3, 11:44 am, Davide Bianchi <davideyeahs...@onlyforfun.net>
> wrote:
>
> 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

2007-09-03, 7:21 pm

* David Johnson wrote:
> * shimmyshack wrote:
>
> 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?!
\Crash\ Dummy

2007-09-07, 1:35 pm

> 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



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com