|
All times are UTC |
|
|
Page 1 of 3 |
[ 26 posts ] | Go to page 1, 2, 3 Next |
| Print view | Previous topic | Next topic |
| Author | Message |
|---|---|
|
Site Admin Joined: Wed Dec 12, 2007 9:34 pm Posts: 296 |
PatchLog.com had previously released a sitemaps module for an older version of pligg v9,7 I think, this module stopped working after the release of v9.8 of pligg. We have played around with the files and have it working in v9.8.2 of pligg instructions and download below…..
NOTE: This module will only work if you have URL2 method activated in pligg. 1. Download the module above. 2. Unzip and upload the folder xml_sitemaps to you pligg /modules folder. 3. Go to Admin / Modules Management and activate the Plligg Sitemaps Module. 4. open you .htaccess file in you pligg install’s root directory and add the code below to the very bottom. Code: RewriteRule ^sitemapindex.xml module.php?module=xml_sitemaps_show_sitemap [L] RewriteRule ^sitemap-([a-zA-Z0-9]+).xml module.php?module=xml_sitemaps_show_sitemap&i=$1 [L] Done Go to http://yoursite.com/sitemapindex.xml to check that it is working. Now submit your sitemaps to Google Download Pligg XML Sitemaps Module v9.8.2 Attachment: xml_sitemaps.module.pligg.v9.8.2.zip You do not have the required permissions to view the files attached to this post. |
| Tue Dec 25, 2007 1:43 am |
|
|
Joined: Tue Dec 25, 2007 10:47 pm Posts: 6 |
It seems I'm the only one having problems with your isntructions. Im sorry
I installed it withour problem. That's my .htaccess Code: ##### Gzip Begin ##### ## To enable Gzip and decrease the load times of your Pligg site ## change /home/path/to to your absolute server path and remove the two # from both lines ## php_value auto_prepend_file /home/path/to/begin_gzip.php ## php_value auto_append_file /home/path/to/end_gzip.php AddType "text/javascript" .gz AddEncoding gzip .gz RewriteCond %{HTTP:Accept-encoding} gzip RewriteCond %{THE_REQUEST} ^(.*).js RewriteCond %{SCRIPT_FILENAME}.gz -f RewriteRule ^(.*)\.js $1.js.gz [L] ##### Gzip End ##### ##### 404 Error Begin ##### ## If Pligg is installed in a subfolder, change the below line to ErrorDocument 404 /name-of-subfolder/404error.php ErrorDocument 404 /news/404error.php ##### 404 Error End ##### ##### Re-directing Begin ##### Options +Indexes +FollowSymlinks RewriteEngine on ## If Pligg is installed in a subfolder, change the below line to RewriteBase /name-of-subfolder RewriteBase /news RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*index\.php\ HTTP/ ## 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 ##### ## Remove www., always. RewriteCond %{HTTP_HOST} ^www\.yoursite\.com [NC] RewriteRule ^(.*)$ http://yoursite.com/$1 [L,R=301] ## Rewrites the index.php page to point to the domain default folder RewriteCond %{THE_REQUEST} (index\.php) [NC] RewriteRule ^(.*)index\.php$ http://yoursite.com/$1 [L,R=301] ##### You can find the below lines pre-made for you in the category management section of the admin panel ###### RewriteRule ^(all|Audio|Musica|Reproductoresmp3|Video|Moviles|Internet|Ordenadores|Software|Otrosgadgets)/([^/]+)/?$ story.php?title=$2 [L] RewriteRule ^(all|Audio|Musica|Reproductoresmp3|Video|Moviles|Internet|Ordenadores|Software|Otrosgadgets)/?$ ?category=$1 [L] ##### ##### URL Method 2 ("Clean" URLs) Begin ##### RewriteRule ^story/([0-9]+)/?$ story.php?id=$1 [L] RewriteRule ^story/title/([^/]+)/?$ story.php?title=$1 [L] RewriteRule ^story/([0-9]+)/editcomment/([0-9]+)/?$ edit.php?id=$1&commentid=$2 RewriteRule ^story/([0-9]+)/edit/?$ editlink.php?id=$1 RewriteRule ^story/([0-9]+)/modify/([a-z]+)/?$ linkadmin.php?id=$1&action=$2 RewriteRule ^recommend/([a-zA-Z0-9-]+)/?$ recommend.php?id=$1 [L] RewriteRule ^category/([^/]+)/?$ index.php?category=$1 [L] RewriteRule ^upcoming/category/([^/]+)/?$ upcoming.php?category=$1 [L] RewriteRule ^upcoming/([a-zA-Z0-9]+)/?$ upcoming.php?part=upcoming&order=$1 RewriteRule ^inbox/?$ user.php?view=inbox RewriteRule ^user/?$ user.php RewriteRule ^user/view/([a-zA-Z0-9-]+)/?$ user.php?view=$1 RewriteRule ^user/view/([a-zA-Z0-9+]+)/([a-zA-Z0-9+]+)/?$ user.php?view=$1&login=$2 RewriteRule ^user/view/([a-zA-Z0-9+]+)/login/([a-zA-Z0-9+]+)/?$ user.php?view=$1&login=$2 RewriteRule ^user/([a-zA-Z-]+)/link/([0-9+]+)/?$ user_add_remove_links.php?action=$1&link=$2 RewriteRule ^published/?$ index.php RewriteRule ^published/([a-zA-Z0-9-]+)/?$ index.php?part=$1 RewriteRule ^published/([a-zA-Z0-9-]+)/category/([a-zA-Z0-9-]+)/?$ index.php?part=$1&category=$2 RewriteRule ^upcoming/([a-zA-Z0-9-]+)/category/([a-zA-Z0-9-]+)/?$ upcoming.php?part=upcoming&order=$1&category=$2 RewriteRule ^search/(.+)/?$ search.php?search=$1 RewriteRule ^searchurl/(.+)/?$ search.php?url=$1 RewriteRule ^login/?$ login.php RewriteRule ^login/([a-zA-Z0-9-]+)/?$ login.php?return=$1 RewriteRule ^login/([a-zA-Z0-9-]+)/([a-zA-Z0-9-]+)/?$ login.php?return=$1/$2 RewriteRule ^register/?$ register.php RewriteRule ^topusers/?$ topusers.php RewriteRule ^about/([a-zA-Z0-9-]+)/?$ faq-$1.php RewriteRule ^upcoming/?$ upcoming.php RewriteRule ^submit/?$ submit.php RewriteRule ^rss/?$ rss.php RewriteRule ^rss/([a-zA-Z0-9-]+)/?$ rss.php?status=$1 RewriteRule ^rss/category/([a-zA-Z0-9-]+)/?$ rss.php?category=$1 RewriteRule ^rss/search/([a-zA-Z0-9-]+)/?$ rss.php?search=$1 RewriteRule ^rss/user/([a-zA-Z0-9-]+)/?$ rss.php?user=$1 RewriteRule ^rss/user/([a-zA-Z0-9-]+)/([a-zA-Z0-9-]+)/?$ userrss.php?user=$1&status=$2 RewriteRule ^trackback/([0-9]+)/?$ trackback.php?id=$1 RewriteRule ^profile/?$ profile.php RewriteRule ^admin/?$ admin_index.php RewriteRule ^tagcloud/?$ cloud.php RewriteRule ^tagcloud/range/([0-9]+)/?$ cloud.php?range=$1 [L] RewriteRule ^tag/(.+)/?$ search.php?search=$1&tag=true [QSA,NC,L] RewriteRule ^live/?$ live.php RewriteRule ^out/([^/]+)/?$ out.php?title=$1 [L] RewriteRule ^settemplate/?$ settemplate.php RewriteRule ^comments/?$ live_comments.php RewriteRule ^live_published/?$ live_published.php RewriteRule ^unpublished/?$ live_unpublished.php RewriteRule ^logout/([a-zA-Z0-9-]+)/([a-zA-Z0-9-]+)/?$ login.php?op=logout&return=$1/$2 RewriteRule ^published/page/([^/]+)/?$ index.php?page=$1 [L] RewriteRule ^published/page/([^/]+)/category/([^/]+)/?$ index.php?page=$1&category=$2 [L] RewriteRule ^published/page/([^/]+)/([^/]+)category/([^/]+)/?$ index.php?page=$1&part=$2&category=$3 [L] RewriteRule ^upcoming/page/([0-9]+)/?$ upcoming.php?page=$1 [L] RewriteRule ^upcoming/page/([^/]+)/category/([^/]+)/?$ upcoming.php?page=$1&category=$2 [L] RewriteRule ^upcoming/page/([^/]+)/upcoming/([^/]+)/?$ upcoming.php?page=$1&part=upcoming&order=$2 [L] RewriteRule ^upcoming/page/([^/]+)/upcoming=([^/]+)category/([^/]+)/?$ upcoming.php?page=$1&part=upcoming&order=$2&category=$3 [L] RewriteRule ^topusers/page/([^/]+)/?$ topusers.php?page=$1 [L] RewriteRule ^topusers/page/([^/]+)/sortby/([^/]+)?$ topusers.php?page=$1&sortby=$2 [L] RewriteRule ^admin_links/page/([^/]+)/?$ admin_links.php?page=$1 RewriteRule ^admin_comments/page/([^/]+)/?$ admin_comments.php?page=$1 RewriteRule ^admin_users/page/([^/]+)/?$ admin_users.php?page=$1 RewriteRule ^comments/page/([^/]+)/?$ live_comments.php?page=$1 [L] RewriteRule ^published/page/([^/]+)/?$ live_published.php?page=$1 [L] RewriteRule ^unpublished/page/([^/]+)/?$ live_unpublished.php?page=$1 [L] RewriteRule ^published/page/([^/]+)/([^/]+)/?$ index.php?page=$1&part=$2 [L] RewriteRule ^published/page/([^/]+)/range/([^/]+)/?$ ?page=$1&range=$2 [L] RewriteRule ^search/page/([^/]+)/search/([^/]+)/?$ search.php?page=$1&search=$2 [QSA,NC,L] RewriteRule ^user/page/([^/]+)/([^/]+)/([^/]+)/?$ user.php?page=$1&view=$2&login=$3 [L] RewriteRule ^statistics/page/([^/]+)/?$ module.php?module=pagestatistics&page=$1 RewriteRule ^view/([^/]+)/?$ admin_users.php?mode=view&user=$1 ##### URL Method 2 ("Clean" URLs) End ##### RewriteRule ^sitemapindex.xml module.php?module=xml_sitemaps_show_sitemap [L] RewriteRule ^sitemap-([a-zA-Z0-9]+).xml module.php?module=xml_sitemaps_show_sitemap&i=$1 [L] But when I go to http://estosesale.com/news/sitemapindex.xml It shows: Code: <sitemapindex> − <sitemap> <loc>http://estosesale.com/news/sitemap-0.xml</loc> <lastmod>2007-12-27</lastmod> </sitemap> − <sitemap> <loc>http://estosesale.com/news/sitemap-pages.xml</loc> </sitemap> </sitemapindex> IS it normal? Can I use http://estosesale.com/news/sitemap-0.xml as sitemap to submit to google? Thanks again for your help |
| Fri Dec 28, 2007 9:43 am |
|
|
Site Admin Joined: Wed Dec 12, 2007 9:34 pm Posts: 296 |
Hi Juan,
It's all working fine m8 Simply submit the URL's below to google. http://estosesale.com/news/sitemapindex.xml http://estosesale.com/news/sitemap-pages.xml http://estosesale.com/news/sitemap-0.xml After you actually get some content posted on your site check http://estosesale.com/news/sitemapindex.xml and see if anymore maps have been added like below. http://estosesale.com/news/sitemap-1.xml etc. P.S google will crawl every sitemap from the root sitemapindex.xml url, but it never hurts to submit all your sitempa url's to google and yahoo Best Adam |
| Fri Dec 28, 2007 2:17 pm |
|
|
Joined: Tue Dec 25, 2007 10:47 pm Posts: 6 |
Thank you very much for your help Lincoln!
I did the duplicate content trick and this one, so google should index my site faster and better |
| Mon Dec 31, 2007 9:58 am |
|
|
Site Admin Joined: Wed Dec 12, 2007 9:34 pm Posts: 296 |
juanmartinbravo wrote: Thank you very much for your help Lincoln! I did the duplicate content trick and this one, so google should index my site faster and better Whey happy you got it all working dude The sitempas should allow google to index the actual story pages more accuratley as you are telling google exactly what pages exist on your site that you really want indexed. Another step you should take is to submit your sites RSS feeds to Yahoo SiteExplorer Submit all your feeds including categories for maximum coverage |
| Mon Dec 31, 2007 2:30 pm |
|
|
Joined: Fri Jan 25, 2008 2:10 pm Posts: 1 |
When I upload or delete .default from my htacces file, pligg gives a error 500. What should I do to fix this?
|
| Fri Jan 25, 2008 3:51 pm |
|
|
Site Admin Joined: Wed Dec 12, 2007 9:34 pm Posts: 296 |
robertkeus wrote: When I upload or delete .default from my htacces file, pligg gives a error 500. What should I do to fix this? Hi, Make sure your filename for .htaccess has a . in front when you remove .default. Also double check the settings witin the .htaccess file. |
| Fri Jan 25, 2008 4:02 pm |
|
|
Joined: Mon Jan 28, 2008 10:01 pm Posts: 1 |
Hi,
I'm having a few problems: First, I don't have a .htaccess file in the folder (either not on the server) and i can't upload one... Second, http://npgb.org/sitemapindex.xml is showing "cannot find page". Thanks for helping |
| Mon Jan 28, 2008 10:24 pm |
|
|
Site Admin Joined: Wed Dec 12, 2007 9:34 pm Posts: 296 |
369874123 wrote: Hi, I'm having a few problems: First, I don't have a .htaccess file in the folder (either not on the server) and i can't upload one... Second, http://npgb.org/sitemapindex.xml is showing "cannot find page". Thanks for helping Hi 3698, Your .htaccess file will be in the root folder of your pligg install, it's name on a fresh install of pligg is "htaccess.default" you will need to rename that file to ".htaccess" on your server then add the 2 lines below to that file. Code: RewriteRule ^sitemapindex.xml module.php?module=xml_sitemaps_show_sitemap [L] RewriteRule ^sitemap-([a-zA-Z0-9]+).xml module.php?module=xml_sitemaps_show_sitemap&i=$1 [L] |
| Tue Jan 29, 2008 4:09 pm |
|
|
Joined: Sun Feb 10, 2008 6:24 am Posts: 6 |
Hi there, can anyone help with this.
Everything seems to work fine until I go to http://www.linka.co.nz/sitemap-1.xml, http://www.linka.co.nz/sitemap-0.xml or http://www.linka.co.nz/sitemap-pages.xml. When I put one of those urls in my address bar this is the result that is returned: Code: XML Parsing Error: no element found Location: http://www.linka.co.nz/sitemap-1.xml Line Number 1, Column 1: ^ Can any one tell me why I am getting this error and mroe importantly how to fix it. Cheers |
| Sun Feb 10, 2008 8:08 pm |
|
|
|
Page 1 of 3 |
[ 26 posts ] | Go to page 1, 2, 3 Next |
|
All times are UTC |
Who is online |
Users browsing this forum: No registered users and 0 guests |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum |

