dcsimg
www.webdeveloper.com
Results 1 to 3 of 3

Thread: redirecting index.html to the root

  1. #1
    Join Date
    Apr 2016
    Posts
    2

    redirecting index.html to the root

    My webpage is pure html with few java script

    Godaddy is hosting my website

    I need to change my URL from "www.mysite.com/index -> to-> www.mysite.com


    i have added a redirect code but it doesn't help

    Code:
    RewriteEngine On
    RewriteCond %{THE_REQUEST} /index\.html? [NC]
    RewriteRule ^(.*/)?index\.html?$ $1 [R=301,L]L]
    Please i am searching around the net none solve my problems

  2. #2
    Join Date
    May 2016
    Location
    Greater NYC Area
    Posts
    4
    Code:
    DirectoryIndex index.html
    RewriteEngine On
    Redirect 301 /index http://www.mysite.com

  3. #3
    Join Date
    May 2016
    Posts
    1
    Hi,
    Please use 301 for permanant redirection in .HTACCESS file

Thread Information

Users Browsing this Thread

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

Tags for this Thread

Posting Permissions

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



Recent Articles