Need some help on small coding .. want to redirect one category to another directory

Discussion in 'Directories' started by procrastinator, May 30, 2007.

  1. #1
    Im using the free 2.1 version of phpld. What i want to do is create a outside link to a category.
    To cut the story short > There will be a category XYZ , but when someone clicks on it , it goes to my niche directory which is based on that category.
    Can this be done easily ? Dont have much knowledge of coding.
     
    procrastinator, May 30, 2007 IP
  2. SilkySmooth

    SilkySmooth Well-Known Member

    Messages:
    1,583
    Likes Received:
    269
    Best Answers:
    0
    Trophy Points:
    180
    #2
    Two questions:

    1) Does it need to be a visable link to the niche site or will a redirect suffice?

    2) Is it a main category or sub category?
     
    SilkySmooth, May 31, 2007 IP
  3. procrastinator

    procrastinator Peon

    Messages:
    1,718
    Likes Received:
    56
    Best Answers:
    0
    Trophy Points:
    0
    #3
    redirect will suffice & it will be a link under Entertainment category, thanks :)
     
    procrastinator, Jun 1, 2007 IP
  4. humm

    humm बहादुर बच्चा

    Messages:
    4,346
    Likes Received:
    850
    Best Answers:
    0
    Trophy Points:
    310
    #4
    But won't ur idea be bad for a visitor? Keep going to many dirs from one dir, end result maybe no submission?

    Yes its a diff idea but why not then setup a html based dir which links to your other dirs ?
     
    humm, Jun 1, 2007 IP
  5. SilkySmooth

    SilkySmooth Well-Known Member

    Messages:
    1,583
    Likes Received:
    269
    Best Answers:
    0
    Trophy Points:
    180
    #5
    Ok, all you need to do is add a redirect to your .htaccess file then... like this:

    
    Redirect /Entertainment/SubCategory/ http://www.somedomain.com/
    
    Code (markup):
    Make sure you put it above and mod rewrite rules.
     
    SilkySmooth, Jun 1, 2007 IP
    procrastinator likes this.