www.webdeveloper.com
Results 1 to 2 of 2

Thread: Mod re-Write question?

Hybrid View

  1. #1
    Join Date
    Mar 2008
    Posts
    65

    Mod re-Write question?

    Hey, ive been going thru tutorials, but cant seem to figure it out.

    I want this URL, and others, like this, http://www.draftwatchers.com/prospec...php?playerid=1

    to be either, www.draftwatchers.com/prospects/1 or even www.draftwatchers.com/prospects/Joe-Smith

    Something like that.

  2. #2
    Join Date
    Sep 2004
    Posts
    398
    For /prospects/1 to /prospects/profile.php?playerid=1, try the following in a .htaccess file in your document root
    Code:
    Options +FollowSymLinks -MultiViews
    
    RewriteEngine On
    
    RewriteRule ^prospects/([0-9]+)/?$ /prospects/profile.php?playerid=$1 [QSA,L]
    /prospects/Joe-Smith is a whole lot more complicated.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles