Server Administration
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesServer Administration

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
  #1  
Old November 16th, 2003, 12:40 PM
everytime everytime is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: *.*
Posts: 133 everytime User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
mod_rewrite

I've done a search on the forum for help with mod_rewrite and read this post but I'm having trouble translating it to do what I need:

I have a directory on the domain called bogtest
this has a page called index.php
that expects a variable $bid

currently the page is accessed lik:
www.mydomain.com/blogtest/index.php?bid=x (where x is a number)

I'd like to make the yrl more friendly like
www.mydomain.com/blogtest/x (where x is a number)

I have an .htaccess in bloggtest that has:
Code:
Options +FollowSymLinks
RewriteEngine on 
RewriteRule /blogtest/([0-9]+) /blogtest/index.php?bid=$1


This currently isn't working. I need to jigger with the rule part but how...?
Many thanks

Reply With Quote
  #2  
Old November 16th, 2003, 01:08 PM
postalcow postalcow is offline
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Ford CIty, PA USA
Posts: 1,267 postalcow User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
Send a message via Yahoo to postalcow
RE: mod_rewrite

---- Moved by postalcow ----

Reply With Quote
  #3  
Old November 16th, 2003, 01:32 PM
everytime everytime is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: *.*
Posts: 133 everytime User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: mod_rewrite

oops wrong forum.

anyways solved it, was missing the base path for the bogtest directory

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesServer Administration > mod_rewrite


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

IBM developerWorks




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway