Welcome our webmaster and SEO forum
Please enjoy the forum, contribute what you can, and wind up the Moderators!
Closed Thread
Results 1 to 3 of 3

Thread: .htaccess issues

  1. #1
    livetech is offline Senior Member livetech will become famous soon enough
    Join Date
    Nov 2007
    Posts
    182

    Default .htaccess issues

    Hello everybody

    I'm doing a website for a client (Boutique Perfumes) and the site is live and going swimmingly. However, I've noticed that the non-www of the page shows up an error page. I've had not yet found a way around this and here is my htaccess of the site:

    Code:
    RewriteEngine On
    RewriteCond %{HTTP_HOST} !^www\.boutiqueperfumes\.co.uk$
    RewriteRule (.*) http://www.boutiqueperfumes.co.uk/$1 [R=301,L]
    ErrorDocument 404 http://www.boutiqueperfumes.co.uk/
    I'm a bit confuzzled as to why it doesn't work, but have noticed http://test.boutiqueperfumes.co.uk has a site associated to it, so it *could* be a dns, rather than server issue?

    Any suggestions?

  2. #2
    Bagi Zoltán's Avatar
    Bagi Zoltán is offline Boss Cart consultant Bagi Zoltán has much to be proud of Bagi Zoltán has much to be proud of Bagi Zoltán has much to be proud of Bagi Zoltán has much to be proud of Bagi Zoltán has much to be proud of Bagi Zoltán has much to be proud of Bagi Zoltán has much to be proud of Bagi Zoltán has much to be proud of
    Join Date
    Feb 2007
    Location
    Veszprém, Hungary
    Posts
    1,225

    Default

    Quote Originally Posted by livetech View Post
    *could* be a dns, rather than server issue?
    This is my strongest guess as well, if I were you i would contact to the supporter team.

  3. #3
    espmartin's Avatar
    espmartin is offline Senior Member espmartin will become famous soon enough
    Join Date
    Jun 2007
    Location
    West Coast, USA (California)
    Posts
    625

    Default

    Both work for me, but the non-www is NOT redirected, the site just loads for both.

    For my sites that I redirect to www, I do NOT use the !^www - I just do this:
    Code:
    RewriteCond %{HTTP_HOST} ^germanshepherd-breed\.(org|com|info)
    RewriteRule (.*) http://www.germanshepherd-breed.org/$1 [R=301,L]

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124