podja Posted January 2, 2008 Share Posted January 2, 2008 Hi, I know there is something you can do in the .htaccess file that redirects all traffic from 1 url to another. For example: http://google.com/ would redirect to http://www.google.com/ It helps with SEO I think because backlinks are all classed as one site. Thats what I read somewhere anyway. Quote Link to comment https://forums.phpfreaks.com/topic/84133-htaccess-rewrite/ Share on other sites More sharing options...
madmax Posted January 8, 2008 Share Posted January 8, 2008 Yes there is but if it's your own server there are two other ways to do the job A) DNS B) ServerAlias Quote Link to comment https://forums.phpfreaks.com/topic/84133-htaccess-rewrite/#findComment-434040 Share on other sites More sharing options...
powerspike Posted February 5, 2008 Share Posted February 5, 2008 If you wish to use mod rewrite on this one, try the following RewriteCond %{HTTP_HOST} !^www\.php\.im RewriteRule (.*) http://www.php.im/$1 [L,R=301] (obviously replace the domain name with your own) Quote Link to comment https://forums.phpfreaks.com/topic/84133-htaccess-rewrite/#findComment-458506 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.