Permalinks
Permalinks are links like http://scriptsextra.ishallnotcare.org/category/books/ instead of something ugly like http://scriptsextra.ishallnotcare.org/phpfan.php?action=category&catname=books. You can do this with phpFan on your site, including on subdomains with a little extra code.
Instructions
Download the .htaccess file from your subdomain or main directory. Remember to make a backup. Include the following:
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . index.php [L] </IfModule>
Remember to update this to your particular site. This would be an example of phpFan being at http://yoursite.com/phpfan.php or http://whatever.yoursite.com/phpfan.php. If you have it in a subdirectory then it would be:
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase /subdirectoryhere/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . index.php [L] </IfModule>
You have to upload the .htaccess file back to the subdomain or main directory.
If you want to use permalinks on a subdomain and its not working even with the above code download the .htaccess file, make a backup, and include the following:
<IfModule mod_rewrite.c> RewriteCond %{HTTP_HOST} ^yoursubdomain.yoursite.org$ [NC] RewriteRule ^(.*)$ /yoursubdomain/$1 [P,QSA] </IfModule>
This is only under special circumstances. You’ll have to change the other two bits of code accordingly to reflect that you’re using the sub-domain as a sub-directory.
