by myliferetreat » Fri Aug 07, 2009 3:55 pm
It did not work.
RandomCategory.php changes it also sometimes may include numbers such as RandomCategory911.php or Random1Category.php etc
It has pagination so therefore the page number automatically changes if the first page is full of information it goes on to page 2, 3, 4 etc.
My site has various categories but they all use the same format
My current format on my site is:
http: //www. site.com/RandomCategory.php
http: //www. site.com/RandomCategory.php?page=2
=====================
I've also tried the following mod_rewrite however it did not work
RewriteEngine on
RewriteRule ^page(.*)/(.*)\.htm$ $2.php?page=$1 [L]
RewriteRule ^(.*)\.htm$ $1.php [L]
Was trying to get this results:
http: //www. site.com/test.htm
http: //www. site.com/page2/test.htm
===========================
Also tried these options but again none of them worked
If you have mod_rewrite enabled on an Apache server, turn it on with this (in your .htaccess file):
Code:
Options +FollowSymlinks
RewriteEngine On
To change from yoursite.com/category.php to yoursite.com/category.htm:
Code:
RewriteRule ^([a-z0-9_-]+).htm$ /$1.php [L]
To change from yoursite.com/category.php?page=2 to yoursite.com/page#2/category.htm:
Code:
RewriteRule ^page#([0-9]+)/([a-z0-9_-]+).htm$ /$2.php?page=$1 [L]
To change from yoursite.com/category.php?page=2 to yoursite.com/category-page2.htm:
Code:
RewriteRule ^([a-z0-9_-]+)-page([0-9]+).htm$ /$1.php?page=$2 [L]
===================
By the way none of these options worked on my webserver