Announcement

Collapse
No announcement yet.

problem with redirection

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • rhender
    replied
    Holy Hell. It was finally this bit of code that did the trick for me for whatever reason. And I tried everything that I could find on google. I tried probably 10 different versions of this... but this is the one that finally worked.

    I found it at the following link, which seemed to be a good informative site on .htaccess Thank you Lord!!!!!! I also cleared my browser history right before it worked, so maybe that was the problem as well.. not sure.

    http://www.seo-consultant-services.c...-problems.html

    Code:
    RewriteEngine On
    RewriteCond %{HTTP_HOST} !^www\.seo-consultant-services\.co.uk$
    RewriteRule (.*) http://www.seo-consultant-services.co.uk/$1 [R=301,L]
    Replace the .co.uk with whatever your url extension is (.com or .net or whatever)

    Leave a comment:


  • rhender
    replied
    Originally posted by donald1234 View Post
    Yes I have just installed it too soon to say.
    Cool. I'll be interested to hear what you think of it. I'm skeptical at first, but then again, I know nothing about it yet... so who knows?

    Leave a comment:


  • donald1234
    replied
    Yes I have just installed it too soon to say.

    Leave a comment:


  • donald1234
    replied
    You need a special 301 code from them if you have it installed.

    Leave a comment:


  • rhender
    replied
    Yeah, I just googled it after you asked me if I had it. Do you have it? Is it worth it?

    Leave a comment:


  • donald1234
    replied
    If you don't know what it is you won't have it. It costs $150.

    Leave a comment:


  • rhender
    replied
    I don't know what that is.. and I don't know if I have it or not. What is it?

    Leave a comment:


  • donald1234
    replied
    Do you have vbseo?

    Leave a comment:


  • rhender
    replied
    Ok, thanks.

    I deleted the .htaccess file again, and everything is back to the way it was before... so at least the non www version is back. SO that's good. I'll keep trying.

    Thanks for the help.

    Leave a comment:


  • donald1234
    replied
    I have seen different codes for 301 have a search over on vb.org

    Leave a comment:


  • rhender
    replied
    Ok, yeah, I read the info in that link and pasted the code into my .htaccess file... same problem.

    I don't know why, but it does not seem to be working for me, and I now don't have access to the non www version.

    Frustrating that it doesn't work, thanks for trying to help me though.

    Leave a comment:


  • donald1234
    replied
    I got my info here http://dense13.com/blog/2008/02/27/r...with-htaccess/ it works on my server.

    Leave a comment:


  • rhender
    replied
    Yeah mine is apache... what I mean by delete the file is just removing from the server, so yes, back to where I started without a .htaccess file at all.

    But I don't think this code works for me for some reason.

    Leave a comment:


  • donald1234
    replied
    what do you mean delete the file, if you remove the code you will be back to where you were. That code works on my server, is yours apache?

    Leave a comment:


  • rhender
    replied
    Ok, so if someone could help me repair this that would be great... this is not good, because a lot of people will think the site is gone... if they go to the non www version.

    Leave a comment:

Related Topics

Collapse

  • NumNum
    htaccess redirect
    by NumNum
    I'm not at all familiar working with htaccess. But I recently set my site to ssl and want to redirect. I have found the redirect code for http to https, but which htaccess file gets modified ( I assume...
    Fri 17 Mar '17, 2:17am
Working...
X