Hello Friends i am using following coding for my website Options +FollowSymLinks RewriteCond %{THE_REQUEST} ^.*/index.html RewriteRule ^(.*)index.html$ http://www.akalcity.in/$1 [R=301,L] ErrorDocument 404 /404.html but my website index.html page is not redirecting to www
Perhaps you can post this question to Wordpress.org forums. There'll be plenty of help you can get over there.
what do you want to do exactly? You want redirect the url without www to the url with www. If you want to do this, use this code: RewriteEngine on rewritecond %{HTTP_HOST} ^your_website [nc]
you mean like this? redirect from yourdomain.com/index.html to yourdomain.com right? are you already try it with canonlizical your Page?
Exactly i want to redirect from yourdomain.com/index.html to www.yourdomain.com but unable to do ...............
try this. <link rel="canonical" href="http://yourdomain.com/index.html" /> put it on head section. if that work please kindly tell me..^^
you can try this (not tested): RewriteEngine on rewritecond %{HTTP_HOST} ^www.yourdomain.com [nc] RewriteRule ^yourdomain.com/index.html http://www.yourdomain.com [nc] RewriteRule http://yourdomain.com/index.html http://www.yourdomain.com [nc]
if you know rewriterule in htaccess: "RewriteRule ^yourdomain.com/index.html http://www.yourdomain.com" mean all the request like yourdomain.com/index.html rewrite in the adress url of the browser in url http://www.yourdomain.com "RewriteRule http://yourdomain.com/index.html http://www.yourdomain.com" mean all the request http://yourdomain.com/index.htm is rewriting in the adress bar of the browser in http://www.yourdomain.com
this is what i use for my website and it works perfectly for me RewriteCond %{HTTP_HOST} !^www.reviewandmoney.com$ [NC] RewriteRule ^(.*)$ http://www.reviewandmoney.com/$1 [L,R=301] if you want any help please contact me at charlesroger @ reviewandmoney .com