SitePoint Sponsor

User Tag List

Results 1 to 17 of 17

Thread: Mod Rewrite

Threaded View

  1. #1
    SitePoint Addict Banana Man's Avatar
    Join Date
    Dec 2005
    Posts
    391
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Mod Rewrite

    This is driving me insane. I am trying to use mod rewrite to get from the url:

    www.mysite.com/folder/?param=1

    to:

    www.mysite.com/folder/1

    I have tried out about 10 different mod rewrite version from varios forums but nothing is working. I just keep on getting an Internal Server Error message. Below is one example i have tried but for the life on me can see the problem. Is this code correct? If it is any other ideas what might be causing the issue?

    Thanks!

    RewriteEngine On

    RewriteBase /
    RewriteRule ^/folder/(.*)$ /folder/index.php?param=$1 [NC]
    Last edited by ServerStorm; Sep 10, 2012 at 08:57. Reason: added [noparse][/noparse] tags to the urls


Bookmarks

Posting Permissions

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