Results 1 to 3 of 3

Thread: Mod Rewrite

  1. #1
    Working. Masetek's Avatar
    Join Date
    Aug 2005
    Location
    Aust
    Posts
    543

    Mod Rewrite

    Hey does anyone know, or can point me in the right direction for the mod rewrite syntax for changing blah.com/signup.html to blah.com?page=signup (or vice versa, I don't know much about mod rewrite)

    I'm sure it's pretty simple, because all it needs to do is find the word signup in signup.html and add it to ?page=. All the resources I've been looking at are way to complicated to do this, they're meant to be used on larger sites/blogs etc

    All my pages will have the same names ie. blah.com/about.html will equal blah.com?page=about

    Anyway, if anyone knows I'd appreciate it...need to get rid of the damn query strings!

    Cheers

  2. #2
    RewriteEngine on
    RewriteRule ^(.*).html?$ index.php?page=$1 [QSA,L]
    Roger Stringer - freekrai.net
    DBStract - Build Virtual Databases

  3. #3
    Working. Masetek's Avatar
    Join Date
    Aug 2005
    Location
    Aust
    Posts
    543
    Works a charm!

    Thanks very much freekrai, appreciate it!

Similar Threads

  1. Help me write mod rewrite code
    By lz83ny in forum Search Engine Optimization
    Replies: 14
    Last Post: 04-22-2005, 07:49 AM
  2. Mod Rewrite, to Remove Spaces
    By Emancipator in forum Website Programming & Databases
    Replies: 2
    Last Post: 11-06-2004, 05:02 PM
  3. Mod Rewrite Assistance
    By Emancipator in forum Website Programming & Databases
    Replies: 10
    Last Post: 08-16-2004, 04:15 PM
  4. Rewrite conditions being ignored
    By mobilebadboy in forum Website Programming & Databases
    Replies: 3
    Last Post: 06-28-2004, 12:55 PM

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
  •