Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Jul 2010
    Location
    Sheffield
    Posts
    822
    Thanks
    93
    Thanked 18 Times in 18 Posts

    Mod Rewrite help

    Ok before i start im gonna say im 100% new to this.

    Im trying to make it so on my site instead of eg.index.php?page=news&article=firstarticle or something like that it says index?news-first-article.

    I've been told to look at Apache rewrite, i've looked through http://httpd.apache.org/docs/2.0/misc/rewriteguide.html but thats completely baffled me. Anyone who can give me a really basic beginners guide i would be most grateful.

    Thanks

  • #2
    New to the CF scene
    Join Date
    Oct 2010
    Location
    Romania
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    RewriteRule ^index\?([_A-Za-z0-9-]+)-article-([_A-Za-z0-9-]+)$ index.php?page=$1&article=$2 [L,nc]


    This should rewrite index?news-article-first-article in index.php?page=news&article=first-article


  •  

    Posting Permissions

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