Welcome to Welcome to DNF.comâ„¢ - Domain Sales, Domain Forum, Domain Appraisals, Domain Registrars

If you are new to domains and looking to buy, sell and learn about domains then you have come to the right place. DNForum is the largest domain name community on the internet and continues to grow every day. There are over 105,000 domainers on DNForum doing everything from buying domains, selling domains, learning about domains and discussing domains. Take a minute and Register.

Register Today on DNForum IT'S FREE!

Results 1 to 3 of 3
  1. #1
    ArcadeScript.Com
    Varchar's Avatar
    Join Date
    Mar 2005
    Location
    Staten Island
    Posts
    1,790
    DNF$
    45,788
    Bank
    0
    Total DNF$
    45,788
    Donate  

    how to use .htaccess to redirect links to a subdirectory?

    Hi there,

    I have a problem with my site now. All the links such as img, url etc are using "/images/1.gif" and "/game/list.html". Problem is, I am not installing the site on the root directory, but in a subdirectory (let's call it 'subd'). In this case, all my links must be updated to "/subd/images/1.gif" and "/subd/game/list.html".

    I know the right way is to use ../, but because this site has many pages, I want to see if there is a better right such as make use of the .htaccess file to resolve this problem.

    Please let me know. Thank you.

    Regards,

    Kawing

  2. #2
    Vincent
    domainoffers.biz's Avatar
    Join Date
    Apr 2006
    Location
    Indonesia
    Posts
    445
    Country

    Indonesia
    DNF$
    5,325
    Bank
    0
    Total DNF$
    5,325
    Donate  

    Re: how to use .htaccess to redirect links to a subdirectory?

    You can edit your root directory file named index.html as following :

    <html>
    <head>
    <title>Redirect</title>
    </head>
    <body>
    <meta http-equiv="refresh" ;URL="http://www.yourdomain.com/subdir/index.html">
    </body>
    </html>
    ---------
    Hopely the above html code could help you out of your problem.
    Still got problems ? ; You can PM me for help.
    Have a great site.
    SELFISH IS A VIRUS THAT CAN RUIN HUMAN WORLD - (Motto from : Smith Gladstone)
    ----
    SELF CONTROL IS JUST LIKE A PERFECT WEAPON TO FIGHT THE EVIL MIND THAT STAYED INSIDE OUR SELF.

  3. #3
    ArcadeScript.Com
    Varchar's Avatar
    Join Date
    Mar 2005
    Location
    Staten Island
    Posts
    1,790
    DNF$
    45,788
    Bank
    0
    Total DNF$
    45,788
    Donate  

    Re: how to use .htaccess to redirect links to a subdirectory?

    Thanks. But I have resolved this long time back. This is a very old thread...

Similar Threads

  1. Your Not linking, There not coming!
    By Coolalex in forum Search Engine Optimization
    Replies: 8
    Last Post: 09-06-2006, 04:47 AM
  2. Replies: 0
    Last Post: 05-01-2006, 08:25 AM
  3. Google's Matt Cutts talks about buying links
    By ForumsHelp in forum Search Engines and Traffic Building
    Replies: 12
    Last Post: 09-23-2005, 12:21 PM
  4. Sooook.com package with 20 traffic names
    By johnnywj in forum Domains for Sale (Domain Sales) - Fixed Prices Above $100
    Replies: 1
    Last Post: 06-30-2005, 04:07 PM

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
  •  

Domain name forum recommended by Domaining.com