wwhitehead
Forum Replies Created
-
Forum: Everything else WordPress
In reply to: Broken Image PathYou are going to want to go back to your existing database structure page, check each of the boxes, next to each of the table and drop them. This will delete all of the tables from your database, and now you can go and import in the new data.
Forum: Everything else WordPress
In reply to: Broken Image PathIn phpMyAdmin click on the ‘Export’ tab at the top. On the resulting page, make sure you click the ‘Save as file’ checkbox and then the ‘Go’ button. This will save a copy of your database to your computer. You can then go in notepad and do a find and replace on your URL.
Forum: Everything else WordPress
In reply to: Redirect a PageTry this plugin: https://www.ads-software.com/extend/plugins/redirection/
Does this help?
Forum: Plugins
In reply to: how to protect media library /uploads folder within a membership siteNot sure if this helps, but I was having a similar issue and in lieu of finding a plugin that solved this problem, I simply used the Force User Login plugin and then created a .htaccess file in my ‘uploads’ directory to prevent direct hot-linking to any file within that directory and its subdirectories not coming directly from my ‘Members Only’ site. This way, only logged in users can access content within the uploads directory, and only when directly linked from my site. Otherwise direct linking re-directs the user to another site. Does this make sense?
Here’s an example .htaccess file you’d want to create and place in your ‘wp-content/uploads’ directory:
IndexIgnore * Options +FollowSymlinks RewriteEngine On RewriteCond %{HTTP_REFERER} !^https://(www\.)?myprotectedmemberssite\.com/ [NC] RewriteCond %{REQUEST_URI} !hotlink\.(gif|png|jpg|doc|xls|pdf|html|htm|xlsx|docx) [NC] RewriteRule .*\.(gif|png|jpg|doc|xls|pdf|html|htm|xlsx|docx)$ https://yahoo.com/ [NC]
In the above example the first line disables file directory listings (so no one can view the files in the ‘uploads’ or any of its subdirectories. The line with HTTP_REFERER makes sure linking to a particular file is coming from my site. The gif|png|jpg|doc|xls|pdf|html|htm|xlsx|docx) is a list of filetypes I want to prevent from being directly linked to (unless they are clicking from my site).
Sorry this doesn’t use a plugin to solve this (maybe I should write one?), but this seems to do the trick. Hope it helps.