My website is opened in 3 version www, non www or index.html what to do now? what should i do now firstly i have to need redirect the url through .htaccess or how to do with .htaccess and still my website 16 pages have indexed nedd your help seo experts. Thanks
#Force www: RewriteEngine on RewriteCond %{HTTP_HOST} ^example.com [NC] RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301,NC] Will sort the www issues by forcing www to show up. What is the .html issue? Do you want to keep or remove it? N.
Thanks Lew i just want to set my website url to www and want to remove .html version how to do? Please tell me whole process and all the codes where i can set only 1 version (www) version for my visitor and both non www or index.html want to remove permanently. please help asap.
#Force www RewriteEngine on RewriteCond %{HTTP_HOST} ^example.com [NC] RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301,NC] RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.html\ HTTP/ RewriteRule ^index\.html$ http://www.example.com/ [R=301,L] Try that. I may need to modify that a bit but let me know if it works. If not, just drop me a PM. I will sort it out for you real fast. Nigel
Thanks a lot from the bottom of the Heart I am a little bit confused don't know How to edit the url in this code. This is the url- www.kullumanalihoneymoonpackage.org you can check and please tell me after the editing the .htaccess file i have to need resubmit the sitemap or not.
Or: RewriteEngine On RewriteCond %{HTTP_HOST} !^www\. RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L] Code (markup): That worked for me better.
Thanks a lot Nigel Redirects working fine there is 1 problem that the site is Auto refreshing i have checked the meta refresh code and delete but there is no effect on Meta refresh so how to do with this i have deleted this, Is it right or wrong or how can i handle with this auto refresh? Thanks in Advance Nigel
you can check also Lew index.html url is still showing whats next........... non www to www is redirected well and what about meta refresh and in sitemap still 301 error showing in sitemap for the Index.html page need your help........... Thanks