I'm a complete newbie.
I'm using Latest Wordpress 3.8.1
The issue is the login box(of private membership, located in /member_area) is appearing on home page .. which is just a landing page.. and I don't want this box to appear there.
I have a sub directory called member_area which is having all html files.. and in this sub-directory the following .htaccess is present:
########### AMEMBER START #####################
AuthType Basic
AuthName "Members Only"
AuthUserFile /home2/rtvouche/public_html/ph/amember/data/.htpasswd
AuthGroupFile /home2/rtvouche/public_html/ph/amember/data/.htgroup
Require group PRODUCT_1
########### AMEMBER FINISH ####################
Whereas in my root WP directory, the following .htaccess is present:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
So what I want is ... in only /member_area the login box should come... but it should not appear on homepage.
Thanks in advance...
For membership use plugin wp member this plugin used to arrage member
Related
I have a Wordpress site and would like to have a static landing page on the same domain, custom coded and without any Wordpress 'influence'.
I've done this before on other servers with no issues, so I uploaded the files via the FTP in root/subfolder, so the page would be:
domain.com/subfolder/index.php
However when I try to load the page, it either:
shows the Wordpress header/footer and a 404 error
or it takes forever to load and wont load any css, images, etc...
If I try to access any files within the subfolder then it's the same outcome.
I looked into it, and apparently this could be an issue with the .htaccess file not allowing pages 'outside the box'. My .htaccess file at the moment is:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# Wordfence WAF
<Files ".user.ini">
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
<IfModule !mod_authz_core.c>
Order deny,allow
Deny from all
</IfModule>
</Files>
# END Wordfence WAF
I tried adding this line which I found may work:
RewriteRule ^(.*)index.(php|html?)$ /$1 [R=301,NC,L]
But after I tried it the whole site wouldn't load.
I also tried the WP Custom HTML Page plugin but:
It only allows you to add a html page and no accompanying folders (css, js, images, etc...)
It didn't even work - it displayed the page as if it were a blog post with the Wordpress header/footer
I can't find anything else which may work, so any help is appreciated.
I have a wordpress website and within the root directory a folder called /ideal/.
The function for the /ideal/ folder is to make payments trough the website from visitors.
Everything worked well for a while, since a few days there is a problem with the page.
When i navigate to my website http://www.nibincasso.nl/ideal/ it wil show up with a 404 error.
With the release of wordpress 4.0 it looks like wordpress is trying to make some sort of dynamic link for the folder /ideal/.
However i want it to open as a static page, not by making it a wordpress dynamic page. “http://www.nibincasso.nl/ideal/index.php”.
Example of .htaccess:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Can someone help me with a solution for this problem?
Kind regards,
Fabi
Update *
I created a new subdirectory on my root with a blank index.php page only saying test
This one opens fine. But when i try to enter the subdirectory /ideal/ with the index.php i get a 404 error. How come?
Try following
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /ideal/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /ideal/index.php [L]
</IfModule>
# END WordPress
There seems to be a problem with the php code inside the index from the /ideal/ folder.
I will search for the solution this is not a wordpress problem.
Thanks for helping me for so far.
I am having problem with an htaccess authentification.
I have a wordpress website and would like to restrict access on it. In the root folder, i have added an htaccess and a htpasswd.
Htaccess codes:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
AuthType Basic
AuthName "Protected Area"
AuthUserFile /home/anglolabs/webapps/financial/.htpasswd
Require valid-user
And the htpasswd is as such:
admin:$apr1$wcax9ykl$uH5ktq9NL/9fqtw5lzYLy1
I am being prompted the box but when entering the username/password, I am being redirected to "500-Internal Server Error".
Sounds like the HTTP Auth is working, but you Apache/PHP is busted.
500 means there was an error executing the PHP. Check your server logs, if you have questions post back what the logs show (might need to use Github Gist or Pastbin)
I am trying to develop http authentication in one of my wordpress site.
I have done below code for this.
in my .htaccess file at root folder.
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /htpass_wordpress/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /htpass_wordpress/index.php [L]
</IfModule>
# END WordPress
I have also created one more.htaccess file for my wp-admin folder.
AuthType Basic
AuthUserFile /htpass_wordpress/wp-admin/.htpasswd
AuthName "My Private Area"
require valid-user
I have created one htpasswd file and put it in wp-admin( same directory where htaccess for wp-admin is stored).
I have stored my user name and base 64 encrypted password in that file.
Now When I access my wp-admin area, pop up appears to ask login.
I provide the username/pass and it allows me to access wp-admin. but then it gives me 500 server error.
does any one know where I am going wrong?
I'm helping a colleague with a recurring issue that's just started happening to multiple sites of his after upgrading to the latest release of WP... He had 4 sites go down today. Here's the message he received back from the server host...
The coding that wordpress posts into
the .htaccess file is basically being
re-pasted in a malformed fashion.
Basically we just separate these two
as you can see below. Contrary to the
post statement I had seen previously,
there is nothing in the apache logs
files indicating any changes to you
site. Neither are there entries over
cpanel or FTP. All methods of
compromise have been exhausted. I do
not believe your scripts are being
compromised in any manner. This is an
issue within wordpress itself. Have
there been any changes to the blogs,
or perhaps any changes that effected
all accounts recently?
The curious part to me in the extract of contents from hit .htaccess file is this:
</IfModulden
# END Word</Limit>
AuthName siteeakers.net
AuthUserFile /home/site/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/site/public_html/_vti_pvt/service.grp
Here is the full text from the hosting provider or the before and after htaccess fix...
Before...
root#cherry [/home/site/public_html]# cat .htaccess
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModulden
# END Word</Limit>
AuthName siteeakers.net
AuthUserFile /home/site/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/site/public_html/_vti_pvt/service.grp
Options All -Indexes
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
After...
root#cherry [/home/site/public_html]# cat .htaccess
AuthName siteeakers.net
AuthUserFile /home/site/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/site/public_html/_vti_pvt/service.grp
Options All -Indexes
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
This
</IfModulden
# END Word</Limit>
is definitely a replace operation gone wrong. It should probably read
</IfModule>
# END WordPress
Update: I think I found some related bugs:
Wordpress Bug #11903
Wordpress Bug #12324
the latter was closed as a duplicate of the former. From what I can see, the function Wordpress uses to write the .htaccess files can crash on a busy server.
11903 seems to have a patch. If this is your problem, maybe try it out.
Things like this are why you should never, ever try to update a live system. Have a local or parallel copy to try things out with; Then do a simple directory rename to replace the running versions.