I am discovering that in the yget template, possibly all pligg templates that a user cannot vote when they type in "www." before the url. If they just type in the domain name alone it is not a problem.
When I go to admin/configure/location_installed and add "www." to the base url it breaks the site.
Is anyone else discovering this?
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
| Can't vote with "www" in url name? |
| ||||
|
you're supposed to add http://www. to the base URL. If users can't vote just rename htaccess.default to .htaccess
__________________ I accept donations for my time helping users like you on the forum and IRC. |
| |||
|
Sorry, I don't quite get what you mean? I see the .htaccess.default file, am I suppose to modify the script at all? Do I just rename it or do I need to move it somewhere? The site is location in a sub-directory. In admin/configure/location_installed, if I add "www." to the base url it breaks the php template on the site. Do I need to add "http://www." - is that the problem? By default it just had the base url (domain name without the www.) |
| ||||
|
make sure the value in location installed has http://www. unless your domain is supposed to be used without it. Since you are installed in a sub-folder open htaccess.default and find RewriteBase / and change it to RewriteBase /name_of_subfolder. Save it and upload it back to the server. Then rename it from htaccess.default to .htaccess
__________________ I accept donations for my time helping users like you on the forum and IRC. |
| The Following User Says Thank You to kbeeveer46 For This Useful Post: | ||
| |||
|
Hi, I'm still having this problem. I did as you suggested and renamed htaccess.default to .htaccess for all my Pigg sites but this has done nothing so far. I've noticed how other Pligg sites refresh to http://www.domain.com, but mine just stays http://domain.com anyway. Please take a look at Avoidinglife.com (Pligg 9.0) or Diggdex.com (Pligg 9.1) if you get a chance. Both have info.php. Neither is in a subfolder on their respective domains. They are however in subfolders of the primary domain on my shared hosting account (silversow.com), but I wouldn't imagine this is the issue. Could that be the issue? |
| |||
|
kbeeveer, first of all I appreciate your rapid response. Second, you fixed the problem but it now broke it the other way. Now when someone types in the domain without the "www." they can no longer vote. I don't have the coding talent of many of you but I would think (in theory) that an and/or statement would need to be inserted somewhere to not care if the "www." is there or not. Many users access websites differently. I for one, usually never use the "www." but apparently many do. The Pligg software will have to take this into consideration. Thanks in advance. |
| ||||
|
does you .htaccess file have these lines ## Remove these two lines if you have a sub-domain like http://ashdigg.pligg.com or http://localhost ## Keep if your site it like http://www.pligg.com RewriteCond %{HTTP_HOST} !^www\. RewriteRule ^\/?(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L] ##### Re-directing End #####
__________________ Anatomy of the Pligg template Help needed |
| |||
|
Yes it does and it is uncommented but a user still can't vote when they type in the ural without the "www." since making the change above.
Last edited by Sinsinnati; 02-25-2007 at 11:42 AM.. |
| |||
| quick fix step 1. set your site base to adress without www step 2. modify .htaccess replace Quote:
Quote:
|
| The Following 2 Users Say Thank You to daone For This Useful Post: | ||
![]() |
« Previous Thread
|
Next Thread »
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to Change the Voting System to Vote For/Vote Against | davidlgj | General Help | 0 | 10-01-2008 04:42 AM |
| Example vote button with Vote down? | coreyvf | General Help | 0 | 09-23-2008 01:51 PM |
| External Vote Button (EVB) | Yankidank | Modification Tutorials | 59 | 07-24-2008 07:51 PM |
| A third vote option? Vote, bury and neutral? | VLJ | Modification Tutorials | 5 | 03-23-2008 10:42 PM |
| Vote button links to story page after voted | canadaka | Suggestions | 1 | 04-02-2007 11:12 AM |




Linear Mode

