Current location: Hot Scripts Forums » Programming Languages » PHP » Some mod rewrite help

Some mod rewrite help

Reply
  #1 (permalink)  
Old 12-31-04, 10:40 PM
jasong jasong is offline
Wannabe Coder
 
Join Date: Feb 2004
Posts: 160
Thanks: 0
Thanked 0 Times in 0 Posts
Some mod rewrite help

Greetings

I know that mod rewrite isnt php or mysql, but there isnt really a mod rewrite forum on here so I'll stick it here

I would like to make it so that when somebody goes to mysite.com/bobby , it includes the page mysite.com/page.php?foo=bobby .
So it looks like there is a directory called bobby, when in fact there isnt.

Any help or suggestions?

Thanks
Jason
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 01-01-05, 02:13 AM
Sabu Sabu is offline
Junior Code Guru
 
Join Date: Sep 2004
Posts: 458
Thanks: 0
Thanked 0 Times in 0 Posts
RewriteRule ^bobby$ /page.php?foo=bobby
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 01-01-05, 03:34 AM
jasong jasong is offline
Wannabe Coder
 
Join Date: Feb 2004
Posts: 160
Thanks: 0
Thanked 0 Times in 0 Posts
Hi Sabu, thanks for the reply

Do I paste this rule in a .htaccess file in the same directory as page.php?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 01-01-05, 11:00 AM
tylerc tylerc is offline
Newbie Coder
 
Join Date: May 2004
Location: Canada
Posts: 55
Thanks: 0
Thanked 0 Times in 0 Posts
i believe you post a .htaccess file into the main mysite.com directory, I think.
__________________
-Tyler
RuneGuide Owner/Manager

Runescape Stats:
http://www.rsbandb.com/sig/sigs/n/nexon89.png
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #5 (permalink)  
Old 01-02-05, 01:04 AM
jasong jasong is offline
Wannabe Coder
 
Join Date: Feb 2004
Posts: 160
Thanks: 0
Thanked 0 Times in 0 Posts
Hey all,

I got the above code to work, but that only works when you do "bobby", I want it for anything.
This is what I have been trying, but doesnt work:
RewriteRule ^(.*)$ /page.php?foo=$1

Any suggestions?

Thanks,
Jason
__________________
SnapSlides.Com - Create slideshows online to share with friends and family.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ConquerChat Mod Help! Steelman ASP 0 12-21-04 01:24 PM
I need a designer to make or edit a OSCmax Payment Mod for me Price is Negotialble computernerd Job Offers & Assistance 1 12-12-04 01:20 PM
phpBB mod Needed will pay $$$ project_manager Job Offers & Assistance 0 08-15-04 04:57 PM
classified ads with mod rewrite hopalong Script Requests 0 07-24-04 09:58 PM
accidentally overwrote critical files while installing attach mod musiq PHP 2 06-10-04 12:26 PM


All times are GMT -5. The time now is 07:32 PM.
vBulletin® Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.