Hi Everyone,<br /><br />This is my first posting target="_blank">try using javascript then you take away the server issue<!--content-->
Hi Daemon Byte,<br /><br />Thanks for the reply. Is using Javascript search-engine friendly?<br /><br />JPC<!--content-->
as I understand it google won't reference javascript. All I can suggest is target="_blank">http://www.mynewsite.com<br /><br />I notice that the above is sometimes included in <VirtualHost.............</VirtualHost>.<br /><br />I need guidance.<br /><br />JPC<!--content-->
The .htaccess file needs to be placed in the root directory of your old website <br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->Options +FollowSymlinks<br />RewriteEngine on<br />rewritecond %{http_host} ^domain.com [nc]<br />rewriterule ^(.*)$ http://www.domain.com/$1 [r=301,nc]<!--c2--></div><!--ec2--><br /><br />REPLACE domain.com and <!-- w --><a class="postlink" href="http://www.newdomain.com">www.newdomain.com</a><!-- w --> with your actual domain name.<!--content-->
As my old website is <!-- w --><a class="postlink" href="http://www.btinternet.com/~J.P.Coates">www.btinternet.com/~J.P.Coates</a><!-- w -->, I presume that I need to replace domain.com with btinternet.com/~J.P.Coates? I'll give this a try but the last time I tried uploading a .htaccess file, it wouldn't let me. So, I uploaded the file as htaccess.txt then renamed it to .htaccess but that wasn't acceptable either. I did remove the index.html file, which is the only html file uploaded to the BT server.<br /><br />Thanks.<br /><br />JPC<!--content-->
I have never used apache redirect on a shared hoster but I would assume it would have to be btinternet.com/~j.p..coates as the old domain. I would imagine that it's not allowed because bt is protecting their server from abuse. Hope you get it sorted.<!--content-->
I'm having problems creating a .htaccess file and would welcome suggestions. I started out by creating a Notepad document - htaccess.txt. This document was then uploaded successfully to the BT server. Then I tried to rename it on the server to .htaccess but without success. I used FileZilla as the FTP client. Does anyone know why I can't rename it? Alternatively, is there another way of creating a .htaccess file?<br /><br />JPC<!--content-->
I would imagine that bt is blocking you from renaming it. Most likely they are fearful somebody would abuse the .htaccess files for some malious purpose.<!--content-->
Hi Daemon Byte,<br /><br />Thanks for the reply. Is using Javascript search-engine friendly?<br /><br />JPC<!--content-->
as I understand it google won't reference javascript. All I can suggest is target="_blank">http://www.mynewsite.com<br /><br />I notice that the above is sometimes included in <VirtualHost.............</VirtualHost>.<br /><br />I need guidance.<br /><br />JPC<!--content-->
The .htaccess file needs to be placed in the root directory of your old website <br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->Options +FollowSymlinks<br />RewriteEngine on<br />rewritecond %{http_host} ^domain.com [nc]<br />rewriterule ^(.*)$ http://www.domain.com/$1 [r=301,nc]<!--c2--></div><!--ec2--><br /><br />REPLACE domain.com and <!-- w --><a class="postlink" href="http://www.newdomain.com">www.newdomain.com</a><!-- w --> with your actual domain name.<!--content-->
As my old website is <!-- w --><a class="postlink" href="http://www.btinternet.com/~J.P.Coates">www.btinternet.com/~J.P.Coates</a><!-- w -->, I presume that I need to replace domain.com with btinternet.com/~J.P.Coates? I'll give this a try but the last time I tried uploading a .htaccess file, it wouldn't let me. So, I uploaded the file as htaccess.txt then renamed it to .htaccess but that wasn't acceptable either. I did remove the index.html file, which is the only html file uploaded to the BT server.<br /><br />Thanks.<br /><br />JPC<!--content-->
I have never used apache redirect on a shared hoster but I would assume it would have to be btinternet.com/~j.p..coates as the old domain. I would imagine that it's not allowed because bt is protecting their server from abuse. Hope you get it sorted.<!--content-->
I'm having problems creating a .htaccess file and would welcome suggestions. I started out by creating a Notepad document - htaccess.txt. This document was then uploaded successfully to the BT server. Then I tried to rename it on the server to .htaccess but without success. I used FileZilla as the FTP client. Does anyone know why I can't rename it? Alternatively, is there another way of creating a .htaccess file?<br /><br />JPC<!--content-->
I would imagine that bt is blocking you from renaming it. Most likely they are fearful somebody would abuse the .htaccess files for some malious purpose.<!--content-->