giganut
Forum Replies Created
-
My site sent me to a 404 forbidden .htaccess warning after putting the code in the file, so I had to remove it. please can you point me in the right direction to find a good tutorial to make a custom plugin. or how much to have you do it for me?
Will this work?
<?php // Exit if accessed directly if ( !defined('ABSPATH')) exit; /** * * WARNING: Please do not edit this file in any way * * load the theme function files */ require ( get_template_directory() . '/includes/functions.php' ); require ( get_template_directory() . '/includes/theme-options.php' ); require ( get_template_directory() . '/includes/post-custom-meta.php' ); require ( get_template_directory() . '/includes/tha-theme-hooks.php' ); require ( get_template_directory() . '/includes/hooks.php' ); require ( get_template_directory() . '/includes/version.php' ); function pw_edd_htaccess_rules( $rules ) { return 'Options -Indexes'; } add_filter( 'edd_protected_directory_htaccess_rules', 'pw_edd_htaccess_rules' );
Ok something really strange is happening here, when I change the .htaccess to this
Options -Indexes
And then upload a new file the .htaccess file changes back to this
Options -Indexes deny from all <FilesMatch '\.(jpg|png|gif)$'> Order Allow,Deny Allow from all </FilesMatch>
And then the download links give a 404 error again.
Ok I just go it working again, this is what I did, I edited the .htaccess like this.
Original before the edit was made
Options -Indexes deny from all <FilesMatch '\.(jpg|png|gif)$'> Order Allow,Deny Allow from all </FilesMatch>
This is what I changed it to and now it’s working again
Options -Indexes
Nothing at all no updates, what should the .htaccess look like, is this right? I remember it was something different before.
Options -Indexes deny from all <FilesMatch '\.(jpg|png|gif)$'> Order Allow,Deny Allow from all </FilesMatch>
The only change was me upgrading EDD plug in again, Remember I had reverted back to the previous version.
My site started to do it again.
I backed everything up and updated the plug in, so far everything seems to be working fine, I will report back in the morning and let you know if everything is still working or not.
Thanks,
Yes I am a program developer, and I sell my program on my site, if thats what you mean.
To scared to update again.
Not sure what that is?
I have a security plugin that renamed the wp-content folder to something different, would that cause a problem with your plugin?
I may still have a back up let me see
I was forced to revert my site back because I could not handle the load of doing everything manually. So the .htaccess is now different than before I moved things back.
I just noticed that https://extendd.com is having the same problem, I tried to download a previous purchased item and it sent me to a 404 not found there also.