This Forum has been archived there is no more new posts or threads ... use this link to report any abusive content
==> Report abusive content in this page <==
Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
After applying301 redirect my website is going to www.example.com/public_html?
04-08-2014, 07:37 PM
Post: #1
After applying301 redirect my website is going to www.example.com/public_html?
I am using this code in my .htaccess file of my PHP website for 301 redirection.

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

Redirection from non-www to www is successful but at the first time website is going to http://www.example.com/public_html

Please can anyone tell, what I am doing wrong ?

Thanks

Ads

Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
After applying301 redirect my website is going to www.example.com/public_html? - teeny-tinyMenace251 - 04-08-2014 07:37 PM
[] - Jake - 04-08-2014, 07:46 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)