Subfolder install of wordpress - permalinks not working correctly

Discussion in 'WordPress' started by johno123, Dec 12, 2008.

  1. #1
    hi there, i was wondering if anyone is familiar with htaccess files & creating them for wordpress...


    I have this plugin installed on a wp site, and permalinks are not working correctly. When i set permalinks to any option other than the default one i get page not found errors.. I remove the plugin and permalinks work fine.

    So it must be because i have it in a subfolder off the root folder on my hosting. But it has its own domain pointing to the domain. And the plugin doesnt know where it is installed..

    well i installed the site theme and plugin on a totally diferrent host and it works absolutely fine there.

    So i need to know how or what to modify in order for the plugin to know im installed in a subfolder off the root folder with its own domain pointing to it.


    Any help would bre appreciated. :D
     
    johno123, Dec 12, 2008 IP
  2. SobieskiBG

    SobieskiBG Peon

    Messages:
    135
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    what plugin is that? give more info about the plugin
     
    SobieskiBG, Dec 13, 2008 IP
  3. johno123

    johno123 Well-Known Member

    Messages:
    1,492
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    130
    #3
    johno123, Dec 14, 2008 IP
  4. ilajas

    ilajas Peon

    Messages:
    183
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Perhaps the plugin was messing the htaccess file and changing the mod_rewrite rules
     
    ilajas, Dec 14, 2008 IP
  5. amol123cool

    amol123cool Banned

    Messages:
    35
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    While setting the permalinks option to custom do make sure that you put the '%' symbol and the '/' whereever required. People generally tend to forget that.
     
    amol123cool, Dec 14, 2008 IP
  6. johno123

    johno123 Well-Known Member

    Messages:
    1,492
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    130
    #6
    Thx for the help guys,


    I have those in place

    none of these options work

    /%year%/%monthnum%/%postname%/

    /%year%/%monthnum%/%day%/%postname%/

    /archives/%post_id%

    But only www.sitename.com/?p=123 works



    maybe one of you could install it on a subfolder and see if it does the same thing...if anyone has the spare time to test for me. I would surely appreciate that.


    thx
     
    johno123, Dec 15, 2008 IP
  7. neiljhonson

    neiljhonson Peon

    Messages:
    315
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Hi,

    If you are using windows hosting then there will be not default mode rewrite function. This function will provide you url rewriting function.

    where as in linux hosting you will get it by default and you can rewrite easily htaccess, file.
     
    neiljhonson, Dec 15, 2008 IP
  8. johno123

    johno123 Well-Known Member

    Messages:
    1,492
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    130
    #8
    i am not using windows hosting... It is linux
     
    johno123, Dec 15, 2008 IP
  9. mdvaldosta

    mdvaldosta Peon

    Messages:
    4,079
    Likes Received:
    362
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Make sure the .htaccess is writable, you'll have to do that or manually add the code to .htaccess after you change the permalink setting.
     
    mdvaldosta, Dec 15, 2008 IP
  10. johno123

    johno123 Well-Known Member

    Messages:
    1,492
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    130
    #10
    Add what code to the htaccess file?

    And what are the "writable" permissions?


    i think permalinks are fine, just not for when the plugin is installed. Cus, they work fine when i uninstall the plugin...



    thx


    PS - This is my 1000th post :)
     
    johno123, Dec 15, 2008 IP
  11. ~kev~

    ~kev~ Well-Known Member

    Messages:
    2,866
    Likes Received:
    194
    Best Answers:
    0
    Trophy Points:
    110
    #11
    That might be your problem. When you change your permalinks, your .htaccess has to writable so wordpress can update it.

    Log into your site with an FTP program, right click the .htaccess file, go to permissions and set them to 777.

    Change the permalink settings in wordpress.

    Go back to the FTP program and change the .htaccess back to 644 or what ever it was before you made the changes.
     
    ~kev~, Dec 15, 2008 IP
  12. johno123

    johno123 Well-Known Member

    Messages:
    1,492
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    130
    #12
    Well Thanks, i just tried that..but no go... :(

    all other permalinks work perfectly except for the links of the categories listed on main page. they look like sitename.com/category/folder/subfolder/


    The plugin as far as i see it.. It's only function is to provide catergories on the main page in three columns side by side. And to link to the author pages.

    Every other permalink on the site works perfectly, permalinked in any fashion i decide. All except those darn categories on the main page!


    Like i said earlier...

    i installed the site theme and plugin on a totally diferrent host and it works absolutely fine there. Category permalinks as well...

    i am so frustrated.
     
    johno123, Dec 15, 2008 IP
  13. johno123

    johno123 Well-Known Member

    Messages:
    1,492
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    130
    #13
    I see upon further review of this plugin that...

    With plugin installed and permalinks settings on. When a user clicks on a categorie name that is empty of posts, it goes to a page not found page..

    But.. when a user clicks on a categorie that is not empty, it takes to the correct permalinked page...


    So..is there a setting i might be able to change? Example of...

    hide_empty (boolean) Toggles the display of categories with no posts. The default is true (hide empty categories). Valid values:
    • 1 (true) - default
    • 0 (false)
     
    johno123, Dec 16, 2008 IP