Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2007
    Posts
    193

    Regarding HTACCESS

    I had some files on one server which i shifted on another server (which has another url)
    Now i want the whenever a person requests a specific file (which has now moved to the new domain) he auto gets redirected to the new domain..

    Say the old url was
    http://www.aaa.com/files/1/2/3/file.xyz

    and the new url is
    http://www.bbb.com/files/1/2/3/file.xyz

    The prob is in the folder files there are 10 folder 1,2,3...10
    I have shifted only 1-8 folders to the new one and want only those request to be redirected..

  2. #2
    Join Date
    May 2006
    Location
    EU & USA
    Posts
    3,684
    seems you just need some htaccess rewrite rules.

    might want to check this for some information about rewrite rules: http://www.askapache.com/htaccess/mo...nd-tricks.html

    You may need to do this for each folder 1 to 8 and skip the ones you didnt move.

Similar Threads

  1. some .htaccess help?
    By kpmedia in forum Hosting Security and Technology
    Replies: 3
    Last Post: 03-10-2008, 07:20 PM
  2. .htaccess
    By NameSniper in forum Hosting Security and Technology
    Replies: 3
    Last Post: 05-30-2006, 10:03 AM
  3. [htaccess] allow from
    By sernate in forum Hosting Security and Technology
    Replies: 11
    Last Post: 12-13-2004, 11:17 AM
  4. where should the htaccess be
    By dapproid in forum Hosting Security and Technology
    Replies: 3
    Last Post: 08-08-2002, 10:34 AM
  5. .htaccess
    By Studio64 in forum Web Hosting
    Replies: 7
    Last Post: 01-06-2002, 12:35 PM

Posting Permissions

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