Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

 

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
New Webmasters ask "How-To" questions here. This is where other fucking Webmasters help.

 
Thread Tools
Old 07-30-2013, 04:57 PM   #1
JockoHomo
"LIKE I GIVE A SHIT"
 
Industry Role:
Join Date: Jun 2013
Location: Dark side of the moon
Posts: 1,523
Another HTAccess Question

I have a members site that I am having problems with. Member's are prompted for the user/pass to get in...then they are prompted a second time to access a video inside.

Now I have found out that when the enter the site using the prefex www.sitename.com they do NOT have to reenter the user/password once they are in.

They DO have to enter it again when they enter the site via sitename.com without the www prefix.

I have tried various lines in the htaccess file but I have not solved the problem. This is a basic apache setup...so I am sure that someone has encountered this before.

What should I do to solve this?
JockoHomo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 07-30-2013, 07:53 PM   #2
PornCious
Registered User
 
Industry Role:
Join Date: Nov 2012
Posts: 50
Do you have rewrite rule setup within .htaccess for non-www to go to www?
PornCious is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 07-30-2013, 08:42 PM   #3
JockoHomo
"LIKE I GIVE A SHIT"
 
Industry Role:
Join Date: Jun 2013
Location: Dark side of the moon
Posts: 1,523
Yes, but doesn't seem to be working.
JockoHomo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 07-31-2013, 04:54 AM   #4
PornCious
Registered User
 
Industry Role:
Join Date: Nov 2012
Posts: 50
Ok, so i assume you want users to enter password twice regardless how they enter your member area, correct? If so, your host needs to activate mod_rewrite (for htaccess rewrite), mod_alias (for htaccess redirects) in Apache. Or you can do it if you have access to httpd.conf. Once activated, you can create rule to setup www to go to non-www(or vice-versa) and your users will be forced to enter password twice.
PornCious is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 08-02-2013, 08:53 PM   #5
Tent Pitcher
Confirmed User
 
Tent Pitcher's Avatar
 
Industry Role:
Join Date: Nov 2012
Location: New Orleans
Posts: 213
Quote:
Originally Posted by JockoHomo View Post
I have a members site that I am having problems with. Member's are prompted for the user/pass to get in...then they are prompted a second time to access a video inside.

Now I have found out that when the enter the site using the prefex www.sitename.com they do NOT have to reenter the user/password once they are in.

They DO have to enter it again when they enter the site via sitename.com without the www prefix.

I have tried various lines in the htaccess file but I have not solved the problem. This is a basic apache setup...so I am sure that someone has encountered this before.

What should I do to solve this?
Can you post (or PM me) your .htaccess file? The order as well as the switches for your commands are critical.

Without seeing it, the basics of enabling mod_rewrite are (assuming a linux server and apache 2.2):

1. Run 'a2enmod rewrite' to enable mod_rewrite in apache

2. Modify your apache config file - '/etc/apache2/sites-enabled/000-default' in most cases and change 'AllowOverride None' to 'AllowOverride All' for / and /var/www

3. Restart apache

Your .htaccess should look something like this (and be in /var/www):

Code:
RewriteEngine on

RewriteCond %{SERVER_NAME} !^tentpitcher\.com
RewriteRule .? http://tentpitcher.com [L,R=301]
That would redirect anyone coming in on anything other than tentpitcher.com (like www.tentpitcher.com) to http://tentpitcher.com. Of course, it is highly subjective, so if it doesn't work I again suggest posting your .htaccess.
__________________
Tent Pitcher - Adult Search Engine

Last edited by Tent Pitcher; 08-02-2013 at 08:55 PM..
Tent Pitcher is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
 
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.