homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

modrewrite question

 4:46 am on Dec 6, 2002 (gmt 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)


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.


Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved