.htaccess, one or i can have two files?

Discussion in 'Site & Server Administration' started by HiSoC8Y, Mar 8, 2008.

  1. #1
    hello

    my main site is running on my root www.mydomain.com

    and now i added a blog to it

    www.mydomain.com/blog/

    i have already an .htaccess for my first application on the root, i want to use permlinks in wordpress.

    do i need to create a new .htaccess in the /blog/ folder, or i have to modify the root .htaccess?
     
    HiSoC8Y, Mar 8, 2008 IP
  2. kaung

    kaung Twitter @KaungKo

    Messages:
    4,040
    Likes Received:
    187
    Best Answers:
    0
    Trophy Points:
    155
    #2
    you can have 2 files or you can modfiy/addon to your root one
    but of course you may have to change path sometimes
     
    kaung, Mar 8, 2008 IP
  3. aap

    aap Well-Known Member

    Messages:
    1,802
    Likes Received:
    39
    Best Answers:
    2
    Trophy Points:
    120
    #3
    If you use cPanel..and your host provide you the option of redirect..than you can esily do it in your cpanel.
     
    aap, Mar 8, 2008 IP
  4. kaung

    kaung Twitter @KaungKo

    Messages:
    4,040
    Likes Received:
    187
    Best Answers:
    0
    Trophy Points:
    155
    #4
    I dont think he wish to redirect. Just want to add new rules for blog .htaccess.

    -----

    To OP are you talking about wordpress htaccess or perma links and such?
    yeah put it in root.
     
    kaung, Mar 8, 2008 IP
  5. naif

    naif Well-Known Member

    Messages:
    468
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    118
    #5
    You'll need to use a new .htaccess file for the sub directory.

    Create a blank .htaccess file and upload it to /blog/ and chmod it to 777 and let WP generate it for you.

    Regards,
    -- Naif
     
    naif, Mar 8, 2008 IP
  6. HiSoC8Y

    HiSoC8Y Active Member

    Messages:
    136
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #6
    ok, i created a new .htaccess

    thanks guys
     
    HiSoC8Y, Mar 9, 2008 IP