www.webdeveloper.com
Results 1 to 2 of 2

Thread: htaccess redirect index.php?... to index.html

  1. #1
    Join Date
    Oct 2011
    Location
    Minnesota
    Posts
    7

    htaccess redirect index.php?... to index.html

    I've got a site with a temporary redirect to a directory on my site while we get a new host set up. www.travelproductsinc.com redirects to mysite/tpi/index.html (a landing page). My problem is that links to internal pages on the old site break.

    Ex: google link: http://travelproductsinc.com/tpi/ind...d=13&Itemid=50 is broken.

    I have these lines in my htaccess to handle the redirect so far:
    RewriteCond %{REQUEST_URI} !/tpi/
    RewriteCond %{HTTP_HOST} travelproductsinc
    RewriteRule .* http://www.prolitho.com/tpi%{REQUEST_URI} [L]

    What should I add to handle /tpi/index.php... ? Note: I still need to access a /tpi/images directory.

  2. #2
    Join Date
    Oct 2011
    Location
    Minnesota
    Posts
    7
    Found it. I redirected index.php on that directory to the redirected site.

    Redirect 301 /tpi/index.php http://www.travelproductsinc.com

Thread Information

Users Browsing this Thread

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

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