Redirect from domain.com to subdomain.domain.com
Redirect from domain.com to subdomain.domain.com
Redirect from domain.com to subdomain.domain.com
Allowing access to certain WordPress created pages or posts with htaccess / htpasswd
403 forbidden due to .htaccess?
You can create a custom page template for downloads and use something similar to the following: if (current_user_can(‘contributor’)) { echo “<h2>Download Page</h2>”; } else { echo ‘You do not have access to this page”; } You would need additional code to show the file you are offering for download. Alternatively you could set another cookie … Read more
This can be done. What you want in your .htaccess is something like if directory do not exist in root change root to the wordpress directory unfortunately I am not familiar with a way to do such a thing with .htaccess The other option is to map each possible url directory to the wordress directory, … Read more
Try this into htaccess RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
You need to revise your last rule RewriteRule ^blog(.*)$ http://blog.joesexample.com/$1 [R=301,L] I think that should do it. Previously you were grabbing ‘blog’ and adding it to the end of the url.
Try this: RewriteRule ^(freebooks)$ $1/index.php?p=5&min_price=0&max_price=0 [NC,L] or just RewriteRule ^freebooks$ freebooks/index.php?p=5&min_price=0&max_price=0 [NC,L]
Eventually I solved it by moving my app/ folder and my wp/ folder into a subfolder, which becomes the web root. Something like this: my_project | \–vendor <– folder for composer packages | | | \… | \–wordpress <– Web Root | | | \–app <– custom wp-content folder | | | | | \–mu-plugins … Read more
My security solutions so far: WordPress Make all new posts private (in WordPress) Don’t use any modules, the more third party software I add the less secure the repo becomes Two factor authentication ( this would break the no third party module rule above) Apache Force https (in .htaccess) Protect web repository using .htpasswd (in … Read more