|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Entrance Page (always the same)
Is it possible to configure apache so no matter what page is requested, weather it is the index.html or the otherpage.html
that apache would automatically sent them to a page that would collect data or check for plugins, browser, etc then send them back to the originally requested page? Here is a illistration: If I go to www.domain.coom/coolpages/page3.html I will be refered to www.domain.coom/check.html then depending on the users information it will send them to the flash version or graphic version or a certain browser configured page. I know I can do this if somone goes to a specific page like www.domain.coom/index.html, but what if they drop in on another page? Any tips? |
|
#2
|
|||
|
|||
|
>> apache would automatically sent them to a page that would collect data
That's the power of web programming language. You can do dynamic site with Perl, PHP or whatever u like. >> then send them back to the originally requested page? Wrong concept. >> I will be refered to www.domain.coom/check.html That's external redirect. If you'd like to do it with Apache's mod_rewrite, you need to use internal redirect. >> will send them to the flash version or graphic version or a certain browser configured page You need to make up your mind what is the exact info you need to get from visitors. For flash, you'd need to use dynamic page approach or perhaps plus the addition of JavaScript. Internal redirect can only check for server-side environment variables like REMOTE_ADDR. |
|
#3
|
|||
|
|||
|
Thanks however
Thanks Freebsd for your help,
I am very proficient in php. I have no problem with the detection of flash plug-in, browsers, etc. The area where I am not so proficient in is the last part you touched on. >> That's external redirect. If you'd like to do it with Apache's mod_rewrite, you need to use internal redirect. How would I get mod rewrite to check the landing page only and not on every page request? I guess that was my main point. I am not sure mod_rewrite will do that will it? I know that it will redirect internally but how will it determine weather or not that was their fist page request? I really appreciate your help. |
|
#4
|
|||
|
|||
|
Do a search in this forum using the search keyword: internal redirect.
>> How would I get mod rewrite to check the landing page only and not on every page request? mod_rewrite can intercept all request URI or a particular page (the landing page). >> how will it determine weather or not that was their fist page request? Check HTTP_REFERER. If it's not within your domain, internal redirect them to the landing page. But using mod_rewrite is not the right approach, you should use cookie instead. Say visitors get to select a default language on the landing page, you definitely don't want them to redo all this on next visit. So I suggest you to use PHP approach. |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > Entrance Page (always the same) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|