Allow Access To Subfolder Of HTML For Logged In Visitors

Take a look at this thread here – it covers using .htaccess to protect a directory based on a WordPress logged in cookie. The .htaccess in case the thread goes missing – obviously you’ll need to change uploads/premium to your directory: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_URI} ^.*uploads/premium/.* RewriteCond %{HTTP_COOKIE} … Read more

Upload an image at frontend > Create direction and/or rename filename possible?

What the similar posts (wich your found) are suggesting, is adding a filter in your functions.php wich will handle the filenames for you. All uploaded files will be filtered by this function before the upload will be handled by wp_handle_upload. Add the following lines of code in your functions.php: function wpse_82741_rename_uploaded_file( $image ) { global … Read more

Giving WordPress Its Own Directory together with index.html

Here is the code to put in your functions.php file, it will show the splash-page.php only to outside visitors (by checking the referer). Make a splash-page.php in your current theme directory and edit the domain (example.com) in the code: add_action(‘template_redirect’,’my_splash_page’); function my_splash_page(){ $referer = $_SERVER[‘HTTP_REFERER’]; $referer_parse = parse_url($referer); if(is_front_page()){ // let visitors see the normal … Read more

How to execute WordPress as though it is in the root folder while it is installed in a subdirectory?

WordPress has a good writeup about this at Giving_WordPress_Its_Own_Directory. Many people want WordPress to power their site’s root (e.g. http://example.com) but they don’t want all of the WordPress files cluttering up their root directory. WordPress allows you to install it into a subdirectory, but have your blog exist in the site root. You could also … Read more