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)

Junior Member

10+ Year Member

joined:June 30, 2005
votes: 0

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)

New User

10+ Year Member

joined:May 4, 2006
votes: 0

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]


Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members