homepage Welcome to WebmasterWorld Guest from 54.198.224.121
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Accredited PayPal World Seller

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
modrewrite question
scorpion




msg:1509870
 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?

 

jdMorgan




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

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

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.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved