| | #1 |
| HyperActive Warrior Join Date: 2009
Posts: 283
Thanks: 5
Thanked 5 Times in 5 Posts
|
Hey everyone I just wanted to wish everyone a happy new year. My script sometimes auto refreshes when it certain games are played and it will have the same domain with the extension ?refresh=true I was wondering if i could write an htaccess file that when the ?refresh=true comes up it reverts back to the original page example: www.domain.com/?refresh=true to go to www.domain.com Thanks all! Have a good night and a great new year! |
|
If you want a link here please email me!
| |
| |
| | #2 |
| A rat after money... War Room Member Join Date: 2009 Location: Inside a cheese...
Posts: 770
Thanks: 365
Thanked 80 Times in 68 Posts
|
Why not in PHP...? It would maybe easier. |
| |
| | #3 |
| From IT to IM War Room Member Join Date: 2009 Location: The World Is Flat
Posts: 37
Thanks: 36
Thanked 5 Times in 5 Posts
|
If you have mod_rewrite enabled, then this might help. Code: RewriteEngine On
RewriteCond %{QUERY_STRING} refresh=true
RewriteRule (.*) http://www.domain.com/$1? [R=301] |
|
.
| |
| |
| | #4 |
| Lisa Dozois War Room Member Join Date: 2006 Location: Florida, USA.
Posts: 608
Thanks: 107
Thanked 254 Times in 118 Posts
| Code: Options +FollowSymlinks
RewriteEngine On
RewriteCond %{QUERY_STRING} .
RewriteRule domain.com/?refresh=true /foo.php? [L] |
|
-- Lisa G
| |
| |
| | #5 |
| Darren "The Real Deal" War Room Member |
maybe this php code will do it for you. just save this as a index.php file insert your domain and it should revert to whatever site you want. <?php header('Location: http://your domain name); ?> hope this helps... That's as technichal as it gets for me LOL |
| The Best Hosting Company Hands Down... http://newhostnow.com Enter the coupon code: 1cent for your first months hosting for just $0.01 cent. Yep it's that easy! | |
| |
|
| Bookmarks |
| Tags |
| htaccess |
| |