So i set up a 301 for page www.assuredmedical.com/privacypolicy.htm to go to www.assuredmedical.com/privacypolicy.html but no this could not be that easy for me any ideas what im doing wrong here ?
Hi, I had a look at your page. What did you do so far ? The rewrite rule that mariense gave should be written in a .htaccess file. This has nothing to do with VBScript. Jean-Luc
I have no idea where the origional privacypolicy.htm is so i created a new one with a redirect script in it and that is where it got me <%@ Language=VBScript %> <% Response.Status="301 Moved Permanently" Response.AddHeader "Location", " http://www.assuredmedical.com/privacypolicy.html" > that is the code i used
You try to use an ASP program in a file which is just displayed because its name ends in .htm. This is not going to work. Maybe you can try what I suggested with the .htaccess file. Jean-Luc
ok so i put that into a ascci file with the extension .htaccess and put that into which Dir for my page the root dir or the .htaccess dir?
Yes and no. What I would do : - create an ascii file that you name .htaccess.txt - upload it to the same directory as your page privacypolicy.htm - rename the uploaded file .htaccess - try to view your page in your browser. The .txt extension first makes sure the file is uploaded as an ascii file, but you need to remove this .txt extension to use the file. It could be that the file "disappears" from your FTP software when you rename is (don't worry about that). Jean-Luc
The content of the .htaccess file can vary depending on your system. I would use this : Options +FollowSymlinks RewriteEngine on RewriteRule ^privacypolicy\.htm$ /privacypolicy.html [R=301,L] Code (markup): Jean-Luc
will this same method work if i do it for assuredmedical.com to (dub ya dub ya dub ya).assuredmedical(dot com) as well as for http:// (dub ya dub ya dub ya dot)assuredmedical(dot com) so they dont look like duplicates?
Good to see it worked fine. To avoid any duplicate content between your site with w w w and without w w w, change the .htaccess : Options +FollowSymlinks RewriteEngine on RewriteCond %{HTTP_HOST} !^www.assuredmedical.com$ RewriteRule ^(.*) http://www.assuredmedical.com/$1 [QSA,L,R=301] RewriteRule ^privacypolicy\.htm$ /privacypolicy.html [R=301,L] Code (markup): Jean-Luc
Yeah good posts Jean. But I was wondering, is that possible if you have 2 different domains, and put an htaccess file in your new domain, checking for http:// yourolddoman to switch to http:// yournewdomain?
Write this into an .htaccess file on the old domain RewriteCond %{HTTP_HOST} ^olddomain\.com [NC] RewriteRule ^(.*)$ http://newdomain.com/$1 [L,R=301]
You cannot do that in the new domain. You should do it in the .htaccess file of the old domain, like this : RedirectPermanent / http://www.yournewdomain.com/ Code (markup): Jean-Luc