www.webdeveloper.com
Results 1 to 5 of 5

Thread: Rewrite

Hybrid View

  1. #1
    Join Date
    Jul 2010
    Posts
    9

    Rewrite

    New to .htaccess...

    I want to make /schedules.php?sport=Football&team=Centerville into /schedules/football/centerville/

  2. #2
    Join Date
    Aug 2010
    Location
    Dubai UAE
    Posts
    54
    I think its better to throw all your request to index page and parse it using your server side scripts.
    While ( $post !== '[RESOLVE]' ) {
    ToAnswer();
    }

    Web Developer Dubai extensive php and mysql coder even designs can be
    php developer dubai

  3. #3
    Join Date
    Aug 2010
    Location
    Dubai UAE
    Posts
    54
    Use this htaccess code
    RewriteEngine On
    # Check if the file or directory actually exists – if it does we dont want to redirect
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    # Pass the rewritten URL onto index.php with a $_GET['url'] parameter
    RewriteRule ^(.*)$ index.php?url=$1 [PT,L]
    While ( $post !== '[RESOLVE]' ) {
    ToAnswer();
    }

    Web Developer Dubai extensive php and mysql coder even designs can be
    php developer dubai

  4. #4
    Join Date
    Jul 2010
    Posts
    9
    I want to get rid of all the index.php, and queries...cleaning it up so that its domain.com/schedules/football/centerville and not domain.com/schedules.php?sport=Football&team=Centerville. We are going for "aesthetically pleasing."

  5. #5
    Join Date
    Aug 2010
    Location
    Dubai UAE
    Posts
    54
    try this one
    http://www.tripkoto.com/2010/08/07/c...ccess-and-php/

    hope it helps, Im not that good at grammar but its understandable.
    While ( $post !== '[RESOLVE]' ) {
    ToAnswer();
    }

    Web Developer Dubai extensive php and mysql coder even designs can be
    php developer dubai

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