Announcement

Collapse
No announcement yet.

Problems with index.html redirection

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

  • Problems with index.html redirection

    Hello I'm building a website for the first time and I'm having an issue.
    I did a index.html file that shows that we are under construction when I type www.digimonportugal.eu it will redirect myself to index.html which is what I want, however if I go to digimonportugal.eu it takes me to the default page of the host.

    What can I do?

  • #2
    Take a look at this post...
    http://stackoverflow.com/questions/9...anent-redirect

    Comment


    • #3
      tried to put that "code" into .htacces and still not working.

      now its viceversa, www. doesn't redirect and without redirects correctly
      Last edited by galio; 06-28-2012, 08:32 PM.

      Comment


      • #4
        ok, this is what I have in my site...
        Code:
        RewriteEngine on
        rewritecond %{http_host} ^example.com [nc]
        rewriterule ^(.*)$ http://www.example.com/$1 [r=301,nc]

        Comment

        Working...
        X