|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today! |
|
#1
|
|||
|
|||
|
Mod rewrite sample code
Need some sample code to change a URL presented to the user to show www.someurl.net/do.jsp whenever they go to www.myurl.com
This is presenting a fake url to specific users who type a url directly into the browser. Is this possible and is this a useful protection tool . Also, how can you code isset to check if they typed a url into the browser rather than comming from a specific page. I could use some strong bulletproff session code as an example. Thanks |
|
#2
|
|||
|
|||
|
well you could mod your 404 page to this:
Code:
<!--#include virtual="redirect.php" --> use the complete line and spacing. Or can be redirect.html then use Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title></title> <META HTTP-EQUIV="Refresh" CONTENT="0; URL=http://where_ever.com"> </head> <body> </body> </html> for your redirct page. So no matter what they type in it will send them to http://where_ever.com unless of course it is an actual page on your site. As far as protection... use should always use .htaccess or an index page with a redirect to your domain main page.
__________________
Bob |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Server Administration > Mod rewrite sample code |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|