|
|
|
|
|
|
![]() |
#1 |
Wheither you think you can or you think you can't, Your right.
|
Faster Meta Refresh?
On one of my domains, when a user hits or types in the domain name, I want them to go to a specific url. I am currently using meta refresh and content set to 0. It works fine, but even with the setting of "0" there is still a slight delay.
As for the index page I even set up a blank white page, so it looks pretty much normal, but I still am not crazy about the little delay. Also since the url I want to forward to is a dynamic url, not a static page, I can not map the domain to the url. Is there any other way, or do I just live with the delay? Any Ideas? |
![]() |
![]() |
![]() |
#2 |
Subversive filth of the hedonistic decadent West
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
|
You can do it with htaccess
Code:
RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.+) http://whereyouwanttosendthem/ [L] |
![]() |
![]() |
![]() |
#3 |
Wheither you think you can or you think you can't, Your right.
|
Thank you! Didn't even think about that. Will give it a try...
![]() |
![]() |
![]() |
![]() |
#4 |
a.k.a. Sparky
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
|
Code:
RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteRule .* http://whereyouwanttosendthem/ [L,R=301] If its an unconditional redirect, you don't even need the RewriteCond rule to be there.
__________________
SnapReplay.com a different way to share photos - iPhone & Android |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | Rate This Thread |
|
|