Authentication recognize www or not
-
Casual Pligger
Authentication recognize www or not
I would like to see pligg able to understand that a user authenticated with www.pligg.com is the same as pligg.com.
Right now it tracks them separately.
Is that possible to do?
Thanks!
Aixelsyd
-
Pligg Developer
aixelsyd
This can be resolved using the .htaccess file..
-
New Pligger
chuckroast, exactly how? what needs to be added to the htaccess file?
-
Casual Pligger
Thanks, I didn't think of using the htaccess. It's not pligg controlled then and probably just a heck of a lot easier this way for pligg. Especially with how others may have subdomains. So that makes sense.
Here is how to do it.
To force the www
RewriteCond %{HTTP_HOST} !^www\.yoursitename\.com [NC]
RewriteRule ^(.*)$ http://www.yoursitename.com/$1 [R=301,L]
Or drop the www
RewriteCond %{HTTP_HOST} !^yoursitename\.com [NC]
RewriteRule ^(.*)$ http://yoursitename.com/$1 [R=301,L]
Remember to turn the
RewriteEngine on
If it isn't already.
-
Aixelsyd
-
Constant Pligger
To eliminate the www create a file called .htaccess and use the nex code
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.yoursite\.com$ [NC]
RewriteRule ^(.*)$ http://yoursite.com/$1 [R=301,L]
If you have yourpligg installed in a subdomain use this code inside the subdomain not in the main root folder just in the subdomain folder.
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.subdomain.yoursite\.com$ [NC]
RewriteRule ^(.*)$ http://subdomain.yoursite.com/$1 [R=301,L]
Similar Threads
-
By aroopsharma in forum Questions & Comments
Replies: 0
Last Post: 01-23-2012, 01:26 PM
-
By voxxxlll in forum Questions & Comments
Replies: 7
Last Post: 01-03-2011, 06:05 PM
-
By verbalicious in forum Questions & Comments
Replies: 9
Last Post: 09-01-2010, 06:21 AM
-
By salar in forum Questions & Comments
Replies: 3
Last Post: 11-06-2009, 05:35 AM
-
By lipsmega in forum Questions & Comments
Replies: 0
Last Post: 03-25-2009, 03:02 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules