954,561 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

redirect page

i have a problem: i want redirect everything page in url: ex: http://dracotech.biz to http://www.dracotech.biz . want to add www. in everything request from user.. maybe with mode rewrite in apache but i didn't find way how to do it..

forzadraco
Junior Poster in Training
70 posts since Mar 2008
Reputation Points: 10
Solved Threads: 1
 
i have a problem: i want redirect everything page in url: ex: http://dracotech.biz to http://www.dracotech.biz . want to add www. in everything request from user.. maybe with mode rewrite in apache but i didn't find way how to do it..
RewriteCond %{HTTP_HOST} ^domain.com$ [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301
digital-ether
Nearly a Posting Virtuoso
Moderator
1,293 posts since Sep 2005
Reputation Points: 461
Solved Threads: 101
 

TRY THIS BELOW CODE

---------------------------------------------------------------



You will be redirected to the script in



seconds

scripts99
Newbie Poster
4 posts since Mar 2010
Reputation Points: 10
Solved Threads: 0
 
i have a problem: i want redirect everything page in url: ex: http://dracotech.biz to http://www.dracotech.biz . want to add www. in everything request from user.. maybe with mode rewrite in apache but i didn't find way how to do it..

*if* your host supports redirects from .htaccess files *and* if you're on a Linux based machine running apache, the following lines in an .htaccess file should do the trick:

Options +FollowSymLinks

RewriteEngine On

RewriteCond %{HTTP_HOST} ^(dracotech\.biz)$ [NC]
RewriteRule ^(.*)$ http://www.%1/$1 [R=301,L]


I hope this helps.

-Ray

rsleventhal
Newbie Poster
5 posts since Jun 2008
Reputation Points: 11
Solved Threads: 1
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You