Welcome to WebmasterWorld Guest from 54.196.238.210

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

modrewrite question

     

scorpion

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

10+ Year Member



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?

jdMorgan

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

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



scorpion,

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.

Cheers,
Jim

 

Featured Threads

Hot Threads This Week

Hot Threads This Month