Not signed in (Sign In)

SkillShare - A place to discuss Web Standards and Web Design topics

Categories

Vanilla 1.1.5a is a product of Lussumo. More Information: Documentation, Community Support.

  1.  permalink
    Hey all, maybe someone can help me here. I screwed the pooch doing an .htacess within the WP admin panel — and did it wrong. I now do not have access to that panel to change it back (error 500). Anyone know how I can access the .htacess in within the template area (WP Includes, AP Admin, etc). Thanks, bigtime, for any help.
    •  
      CommentAuthorJohnRiv
    • CommentTimeJul 17th 2006
     permalink
    This may be stating the obvious, but do you have FTP or SSH access to edit the file on the server directly?
  2.  permalink
    Yeah, I have access to all the of the files. In fact, and thankfully, this happened on my local host (I use for testing). So, worst case scenario is that I reinstall apache and mysql. That, however I'd rather not do since I have so many things going on. Plus, I'd like to learn how to fix this in case this happens in the real world (err, I mean Intraworld).
    • CommentAuthordhayes
    • CommentTimeJul 17th 2006 edited
     permalink
    if you have shell access to the server you could:

    cd path/to/directory
    rm -f .htaccess

    or upload a little script:

    <?php
    $delete_me = 'path/to/.htaccess';
    exec("rm -f $delete_me");
    die('done');
    ?>

    (be careful ;)

    good luck.
  3.  permalink
    Would I do that in terminal (on a Mac)? Seems a lil scary.
    • CommentAuthordhayes
    • CommentTimeJul 17th 2006
     permalink
    you can do it in the terminal or use the script .. just cd to the directory where the file exists and issue the command .. as long as it's rm -f .htaccess, it won't delete anything but the .htaccess. promise :)
  4.  permalink
    is there a way to get to .htacess without deleting the code? Basically, just to revise the code to what it should be. I am a bit uncertain as to where "exactly" the file is. According to the Codex it's hidden in UNIX.
    • CommentAuthordhayes
    • CommentTimeJul 17th 2006 edited
     permalink
    check out Onyx besides having half a trillion useful features, there's an option under Appearance->Finder that allows you to display hidden system files (including .htaccess) .. that'll make your seach a bit less tedious.

    oh yeah, forgot: then when you find it, you can open it and edit it with text edit/bbedit, whatever..

    -d
  5.  permalink
    I found the location (in my wordpress folder according to the directory used in Onyx). And that's where I figured it was. But, there is no .htacess file there. I've scanned through all the included php files and can't find it. Can I open it with Onyx. Sorry for all the database noob ?s, but hopefully others are paying attention.
  6.  permalink
    PWNED ... Thanks for the help, bigtime.
    • CommentAuthordhayes
    • CommentTimeJul 17th 2006
     permalink
    np..take it easy. :)
Add your comments
    Username Password
  • Format comments as (Help)