96 pointsSerious WPMU DEV-sterI'm new here
controlyours
Member
—
29th January 2011
Hello there WPMU!
I've modified my '.htaccess' file to include the following code:
RewriteBase /
RewriteRule ^login$ wp-login.php
This allows my site login to be "/login" rather than the standard "wp-login.php". I'm doing this to make my site not look like a wordpress site on login...
Here's the issue.
Whenever I 'Save Changes' in the membership plugin, it seems to rewrite my '.htacces' file, ripping out the code I put in to have a custom login page address...is this possible?
It's happening every time I save and it's getting rather annoying.
Can you please provide me with a solution or something so I don't have to re-modify the '.htaccess' file everytime I want to play with something in the "Edit Options" section of this plugin?
My site address (not that it will really help since I't has a countdown page) is: http://www.affiliatemade.tv
I've modified my '.htaccess' file to include the following code:
RewriteBase /
RewriteRule ^login$ wp-login.php
This allows my site login to be "/login" rather than the standard "wp-login.php". I'm doing this to make my site not look like a wordpress site on login...
Here's the issue.
Whenever I 'Save Changes' in the membership plugin, it seems to rewrite my '.htacces' file, ripping out the code I put in to have a custom login page address...is this possible?
It's happening every time I save and it's getting rather annoying.
Can you please provide me with a solution or something so I don't have to re-modify the '.htaccess' file everytime I want to play with something in the "Edit Options" section of this plugin?
My site address (not that it will really help since I't has a countdown page) is: http://www.affiliatemade.tv
Hey Aaron,
I just changed the permissions to '444' (User, Group & World: 'read' only) and that seemed to fix it.
When 'User' was set to write, it was changing my settings.
6593 pointsLike some sort of WPMU DEV GodExceptionally helpfulLifetime member
Keeper of the Dark Chocolate
—
30th January 2011
#
Considering the login page really is just a form and some links for password retrieval, why not just create your page? That way you don;t have to do the redirect and you can design it in any method you want.
I'm looking to use the 'mailchimp plugin' on signup and I thought that this plugin only worked with the 'wordpress login' setup. Now that I say this, I'm not positive how the mailchimp plugin works...I'll look into this.
I'm telling you though...Every time I saved the options for this plugin (9 times), it changed the .htaccess file. It definitely made me feel a litte crazy.
6593 pointsLike some sort of WPMU DEV GodExceptionally helpfulLifetime member
Keeper of the Dark Chocolate
—
30th January 2011
#
Let's clarify a bit. Can you post a before and after of your htaccess file please? Maybe if we knew what changes were occuring, we could pin them down.
Looks like something is rejigging the rewrites and then WP is being "smart" and trying to help by setting up your htaccess - leave it protected for now I think. Out of interest, if you go to the permalinks page (Settings -> permalinks) does that also remove the line you add?
I set my .htaccess to 644 (with the User: write option enabled) and tried saving my permalinks (without changing anything) and it DID rewrite my .htaccess!
I will leave this file protected from now on....thanks!
Chais
Responses (19)
Lead Developer — 30th January 2011 #
It shouldn't be changing it. Try changing the permissions on the file.
Member — 30th January 2011 #
Hey Aaron,
I just changed the permissions to '444' (User, Group & World: 'read' only) and that seemed to fix it.
When 'User' was set to write, it was changing my settings.
Thanks on this & more questions to come!
Chais
Keeper of the Dark Chocolate — 30th January 2011 #
Considering the login page really is just a form and some links for password retrieval, why not just create your page? That way you don;t have to do the redirect and you can design it in any method you want.
Member — 30th January 2011 #
I'm looking to use the 'mailchimp plugin' on signup and I thought that this plugin only worked with the 'wordpress login' setup. Now that I say this, I'm not positive how the mailchimp plugin works...I'll look into this.
Thanks for helping me think about this!
Chais
Developer — 30th January 2011 #
Membership doesn't even touch the WP re-writes so it certainly won't be touching your .htaccess. What other plugins have you got on your install?
Keeper of the Dark Chocolate — 30th January 2011 #
Was wondering that too actually.
Member — 30th January 2011 #
I've attached a screenshot of my Active Plugins.
I'm telling you though...Every time I saved the options for this plugin (9 times), it changed the .htaccess file. It definitely made me feel a litte crazy.
Thanks again,
Chais
Keeper of the Dark Chocolate — 30th January 2011 #
Let's clarify a bit. Can you post a before and after of your htaccess file please? Maybe if we knew what changes were occuring, we could pin them down.
Member — 30th January 2011 #
I've attached screenshots of with and without my login changes.
Chais
To clarify, when I would save, it would change the .htaccess file back to look like the 'without my changes' image.
Keeper of the Dark Chocolate — 30th January 2011 #
Sorry, I thought you meant that membership was adding in new rules. Are you saying that it;s removing the line you;re adding in?
Member — 30th January 2011 #
Yes, that's exactly right, it removes the line I'm adding in.
Chais
Developer — 30th January 2011 #
Looks like something is rejigging the rewrites and then WP is being "smart" and trying to help by setting up your htaccess - leave it protected for now I think. Out of interest, if you go to the permalinks page (Settings -> permalinks) does that also remove the line you add?
Member — 30th January 2011 #
Barry,
I set my .htaccess to 644 (with the User: write option enabled) and tried saving my permalinks (without changing anything) and it DID rewrite my .htaccess!
I will leave this file protected from now on....thanks!
Chais
Keeper of the Dark Chocolate — 30th January 2011 #
That's strange. I can see it changing the file if a change was made, not just with going to the page.
Does sound like a bug though. Shouldn;t be doing that either on a ms install as that would effect it sitewide.
Member — 30th January 2011 #
Since I've restricted access to the .htaccess file, this isn't really a big problem for me anymore.
I'm more concerned with not being able to see my 'index.php' page when the membership plugin is enabled --> (http://premium.wpmudev.org/forums/topic/the-wordpress-membership-plugin-is-not-showing-our-indexphp-after-it-is-enabled)
Thanks for all the help, I'll consider this .htaccess problem solved unless it gives me a headache in the future.
Chais
Keeper of the Dark Chocolate — 30th January 2011 #
Bingo. Looks like it;s a feature:
http://wordpress.org/support/topic/frustrating-wordpress-re-writes-htaccess
I should have noticed it between the wordpress lines. Sorry about that.
I want to say move it before the Begin wordpress line but something in the back of my mind says it needs to be after the End line.
Can you provide a text copy of your htaccess file please? edit: If you want, of course.
Member — 30th January 2011 #
I believe this is what you mean:
Thanks for finding a solution for the future.
Chais
Keeper of the Dark Chocolate — 31st January 2011 #
That's the whole thing? No wp-super-cache or any of that?
Member — 31st January 2011 #
yes, that's the whole thing... on this particular install I'm not even using multisite.
Chais
Become a member