Forum Moderators: phranque

Message Too Old, No Replies

modrewrite home page "silently" possible?

         

stidj

12:09 am on Feb 5, 2009 (gmt 0)

10+ Year Member



RewriteCond %{THE_REQUEST} \/
RewriteRule ^$ /some/other/file [L]

This is what I have, but I don't want the URL to actually change. I just want the user to be on the homepage but have content displayed on / based on whatever script I choose.

Is there a way to do this?

Thanks guys!

stidj

12:39 am on Feb 5, 2009 (gmt 0)

10+ Year Member



I solved this one, just use [P] and the full http:// to your site. Remember that if the destination URL also forwards or redirects (which mine did for one TLD), you have to make sure you send it to the TLD with no additional forwarding.

jdMorgan

1:54 am on Feb 5, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If the replacement page is on the same site, there is no need to use a proxy connection. This will increase the load on your server and mess up your log files.

All you really need to do is to put the path to your new home page *file* into the DirectoryIndex list (see Apache mod_dir).

Jim

g1smd

2:14 am on Feb 5, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I concur. This is a very simple job for
DirectoryIndex
to handle.