review plugin for wordpress
Sep 20

Here is how to add a sitemap to Phpfox.

First of all, you will need a script that is now paid, but my version is an old free one. I have it available for download here, the sitemap generator.

Just unzip the file and add the generator folder as it is on your root, so that you have yoursite.com/generator

This script can actually generate sitemaps for any engine, so you can use this for other engines as quirky as Phpfox. Its installation instructions are pretty straightforward, follow those, but you will need a few hacks as well.

You will need notepad++ to edit the .htaccess file. Please note that the .htaccess usually cannot be seen from most ftp clients, you will have to get it from your host’s file manager. If you can’t find notepad++, here is a download page.

Now, all you need to do is add exceptions to the htaccess so that, one, you can access the xml generator script and two, so the sitemap.xml is accessible.

Open the .htaccess with notepad++, and add these 2 lines of code:

RewriteCond %{REQUEST_URI} !^/generator/.*

RewriteCond %{REQUEST_URI} !^/sitemap.xml

to the first batch of commands, and again the same two lines on the second batch of commands. Save as .htaccess, and upload. Then you navigate to www.yoursite.com/generator/index.php and configure the script.

After you set it to spider your site and the sitemap is generated, you can submit it to google.

Popularity: 3% [?]

written by Glowleaf     \\ tags: , , , ,
Sell links on every page of your site to thousands of advertisers!

One Response to “How to add an xml sitemap to Phpfox”

  1. PhpFox, an out of the box social network » Glowleaf Says:

    [...] EDIT: I have written a short post on how to make an xml sitemap for phpfox here. [...]

Leave a Reply, but only if you have something useful to say. Otherwise, buzz off