www.webdeveloper.com
Results 1 to 6 of 6

Thread: Htaccess Mahem

  1. #1
    Join Date
    Nov 2005
    Location
    San Diego
    Posts
    54

    Exclamation Htaccess Mahem

    Installed a little script on two of my sites that asked me to create an htaccess file as follows:

    Code:
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !\.html?$
    RewriteCond %{REQUEST_FILENAME} !\.php$ [OR]
    RewriteCond %{REQUEST_FILENAME} admin.php$ [OR]
    RewriteCond %{REQUEST_FILENAME} install.php$ [OR]
    RewriteCond %{REQUEST_FILENAME} /$ [OR]
    RewriteCond %{REQUEST_FILENAME} addrecords.php$
    RewriteRule ^.*$ - [S=1]
    RewriteRule . cloak/loader.php [L]
    The first site, www.dragonflyfringe.com now shows 404 errors when it tries to load html pages. Php pages seem fine.

    The second site www.rossis-pizza.com doesn't even load at all, says it's looking for /cloak/loader.php.

    I know this has to do with that last rule ( RewriteRule . cloak/loader.php [L] ) and possibly the others but I'm unsure how to undo the disaster!

    Could somebody with some htaccess savv write me an undo-er file or even just point me to a page that would teach me? Time's of the essence because both sites are basically MIA right now. Help!!

  2. #2
    Join Date
    Dec 2009
    Location
    Savannah, GA
    Posts
    4
    Here's the link that pretty much tells you everything you ever wanted to know about .htaccess http://httpd.apache.org/docs/trunk/howto/htaccess.html but where you probably want to start is here http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html

    first off, do you have the ability to server https pages? Also, have you checked the error logs for the sites? That should give you some insight. Hope you get it worked out.

  3. #3
    Join Date
    Dec 2009
    Location
    Savannah, GA
    Posts
    4
    Oh, you can also just mv .htaccess .htaccess_wonked to remove the rewrites and all should be well with the world, except of course that the script won't work.

  4. #4
    Join Date
    Nov 2005
    Location
    San Diego
    Posts
    54
    One down, one to go!

    Uploaded a blank .htaccess to rossis-pizza.com and fixed that one. Thanks for the idea phil!

    Dragonflyfringe.com is still totally broken after doing the same thing though :/

    Anyone with insights on this?

  5. #5
    Join Date
    Nov 2005
    Location
    San Diego
    Posts
    54
    I just don't have time to learn the syntax... I'm willing to paypal somebody who can un-rewrite my htaccess for me.

    Probably the easiest money you'll ever make!

  6. #6
    Join Date
    Sep 2008
    Location
    Mexico
    Posts
    786
    If you aren't willing to take the time to learn.... just comment out what you don't need with a hash (#) or if you don't need any of it just rename or delete the file.
    So easy that even a "developer" can do it.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles