Jump to content


Photo

URL question


  • Please log in to reply
2 replies to this topic

#1 Brandon Jaeger

Brandon Jaeger
  • Members
  • PipPipPip
  • Advanced Member
  • 155 posts
  • LocationPA
  • Age:25

Posted 27 April 2006 - 06:47 AM

How would I make this: www.site.com/topic/123

go to: www.site.com/topic.php?tid=123 ?

I know it involves that modrewrite stuff with .htaccess but I'm not sure how to do it.

Thanks in advance!
PHP is my friend (=

#2 Yesideez

Yesideez
  • Members
  • PipPipPip
  • Advanced Member
  • 2,334 posts
  • LocationDevon, UK

Posted 27 April 2006 - 07:33 AM

Try using the search facility as I remember this being answered recently.
Not a pro just an enthusiast :)

if (empty($coffee)) {$coffee=new coffee();}

Please surround any code using the CODE tags - I rarely look at anything without them

#3 Brandon Jaeger

Brandon Jaeger
  • Members
  • PipPipPip
  • Advanced Member
  • 155 posts
  • LocationPA
  • Age:25

Posted 27 April 2006 - 07:35 AM

[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]RewriteEngine on
Options +FollowSymlinks
RewriteBase /
RewriteRule ^(.*)forum/(.*)$ $1test/viewcat.php?cid=$2[/quote]

Solved.
PHP is my friend (=




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users