|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome. |
Share Thread: & Tags
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
I need to redirect as suggested in the subject. I actually found some code but it seems to be doing 302s. Can someone help me out and post the code for mod rewrite that does this? The current code I have is the following:
RewriteEngine On RewriteCond %{HTTP_HOST} !www.domain.com RewriteRule ^.*$ http://%{SERVER_NAME}%{REQUEST_URI} [R] Thanks. |
|
||||
|
try this and see
RewriteEngine On RewriteCond %{HTTP_HOST} !www.domain.com RewriteRule ^.*$ http://%{SERVER_NAME}%{REQUEST_URI} [R=301,L] you can also check your headers here Regards Deep
__________________
Deep Ganatra Gifts to India - Cisco Certification Training - CSS Based Website Design |
|
||||
|
Code:
<HEAD><meta http-equiv="refresh" content="0; URL=http://www.yoursite.com"></HEAD>
__________________
Life is Good, OleTom http://ConstructionWorkers.US http://SkilledConstructionWorkers.co.cc |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |