dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: Redirecting with .htaccess...

Hybrid View

  1. #1
    Join Date
    Apr 2006
    Posts
    20

    Redirecting with .htaccess...

    I have a site that is powered by WordPress. I've created a section for members only, but I also want to have member only downloads. Most plugins offer more than I need, so I would like to see if I can protect my downloads without a plugin but with custom code.

    How can I protect a directory where I have my member only downloads so it can only be accessed by a direct link when a user is logged in?

    Can this be done with an .htaccess redirect?


    Sorry if the above does not make sense.

  2. #2
    Join Date
    Nov 2008
    Posts
    2,477
    The best way to protect your files imo is to place them outside of your DocumentRoot and write a small php script to fetch the files for users who meet your requirements.

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