• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

My Monkey Do

A Log of Coding Solutions

  • Home
  • Web Hosts
  • Tools
  • About

htaccess

GoDaddy Password Protect Home Directory

August 2, 2011 by Webhead

Problem:

GoDaddy makes it simple to password protect a directory.  You just go to their file manager, click on a directory, click on Permissions, fill out a user and password and you’re done.  Bad thing is that you can’t password protect anything in the public root folder.

 

Solution:

Easiest solution is to password protect a subdirectory, open .htaccess, copy the code there and paste it into  your .htaccess in the root public folder and then wait a few hours.  Seriously, just wait.  I followed these steps and didn’t wait, got worried it wasn’t working and undid everything.  a few hours later I ran into this post:  http://www.besthostratings.com/articles/http-auth-php-cgi.html

With that post I felt that I could hackily get the authenticated username and password and then use PHP to determine whether the username/password is correct or not.  Then I could show or not show what I needed.  After all, this was only temporary until the client’s site went live.  I soon found out however that the first solution worked this time.  Go figure.

 

 

 

 

Filed Under: Server Stuff Tagged With: apache, goDaddy, hosting, htaccess

wordpress mod_rewrite exception url

June 28, 2011 by Webhead

Problem:

I added a wordpress blog to a website, but I still needed to get to a url that was on the same website and not part of wordpress.

Search terms:

wordpress mod_rewrite exception url

Solution Found:

http://stackoverflow.com/questions/6428448/rewriterule-exception-for-static-page-outside-wordpress

Use:

RewriteRule ^test.htm$ - [PT,L]

 

Filed Under: Server Stuff Tagged With: apache, htaccess, wordpress

  • « Go to Previous Page
  • Go to page 1
  • Go to page 2

Primary Sidebar

Topics

apache apple bootstrap buddypress chrome cloudways cms css debug drupal eCommerce firebug firefox git gmail goDaddy google hosting htaccess html html 5 IE crap image iPad iPhone javascript jquery kinsta linux localization mac os x ms sql mysql open source optimize php php 7.2 svg tinymce woocommerce wordpress wpengine xss yii youtube




Categories

  • Coding
  • Off the Shelf
  • Plugins
  • Random Thoughts
  • Server Stuff
  • Tools
  • Uncategorized