Forum Moderators: phranque

Message Too Old, No Replies

How to write htaccess file in phpbb2?

htaccess, phpbb2,seo, url redirection

         

Anilkumar

3:32 am on Apr 13, 2009 (gmt 0)

10+ Year Member




How to write htaccess file for phpbb2,
i want to seo friendly url, i write the some contents in htaccess file like:

Options +FollowSymLinks

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} /(.*)-f([0-9]*).html

RewriteRule (.*) viewforum.php?f=%2 [L]

RewriteRule ^[a-z0-9_-]*-f([0-9]+)-([0-9]+)\.html$ viewforum.php?f=$1&start=$2 [QSA,L,NC]

It is working , but the pagination of the forum this is not working please give any suggestion to seo friendly for my phpbb2.

Thanks in advance.
Anil Kumar.

g1smd

8:11 am on Apr 13, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Using .* in your rewrite will see requests for robots.txt and other files being passed to your forum software. You must not do that.

Since it is links that define URLs, you much change the links in the pages of the site to use the new format too.

The 'not working' statement does not convey enough information to be able to guess what you mean. What is the URL format? What exactly happens? What was supposed to happen?