Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

redirection of pages after a certain url

may belong in different forum



3:15 pm on May 21, 2006 (gmt 0)

10+ Year Member

I want to build a dynamic forum where I parse the url with php to determine what is displayed. So if my URL is site/forum/topic1 I look up topic1 in my DB and everything under that can be displayed. My question is since there is no actual site/forum/topic1 page how do I make my server treat that url as if it were site/forum?q=topic1.


3:25 pm on May 21, 2006 (gmt 0)

5+ Year Member

Apache Mod Rewrite Rules.

These rules can be placed in your document root .htaccess file. See the apache module documentation for more information.

For example: This might work ;)

RewriteRule ^([^/\.\s]+)\/([^/\.\s]+)\/([^/\.\s]+)\/$ /index\.php\?site=$1&forum=$2&topic=$3 [L]


Featured Threads

Hot Threads This Week

Hot Threads This Month