Welcome to WebmasterWorld Guest from

Forum Moderators: Ocean10000 & phranque

Message Too Old, No Replies

modrewrite question

4:46 am on Dec 6, 2002 (gmt 0)

Preferred Member

10+ Year Member

joined:Aug 15, 2002
votes: 0

I have this .htaccess line:

RewriteRule ^index\.html$ /welcome.php [L]

The problem is I don't want the result to look like this:

[mydomain.com...] in the address bar

instead I want

[mydomain.com...] in the address bar and still rewrite it to welcome.php

How can this be done?

As part of a more general question: How can it be made such that when a file is requested, it is returned but the address bar only shows the top-level domain, does it involve setting your file as a default homepage on the server?

5:40 am on Dec 6, 2002 (gmt 0)

Senior Member

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 31, 2002
votes: 0


Check out the Apache mod_dir documentation [httpd.apache.org].

Oh, and after your last post, here's the mod_rewrite document [httpd.apache.org] as well - worth a print-and-read.