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 3 of 3
  1. #1
    mjs
    mjs is offline
    New Coder
    Join Date
    Jan 2010
    Posts
    97
    Thanks
    17
    Thanked 0 Times in 0 Posts

    modrewrite rule for urls, need some help

    Hi all,

    I wondering if some one help me, and great thanks,

    I have URL look like:

    http://www.mysite.com/index.php?cate...AL-APARTEMENT4

    so i just want to change it look like:

    http://www.mysite.com/?category=publ...tal-apartemen4

    UPPERCASE to lowercase
    index.php? to ?
    + to -
    %2F to &
    &pic= to /

    this is pissible or any anohter great idea?

    Regards,

  • #2
    Regular Coder
    Join Date
    May 2010
    Posts
    146
    Thanks
    8
    Thanked 0 Times in 0 Posts
    I use this rewrite_url generator. It works for most of my urls

    http://www.generateit.net/mod-rewrite/

  • #3
    mjs
    mjs is offline
    New Coder
    Join Date
    Jan 2010
    Posts
    97
    Thanks
    17
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by twobyfour View Post
    I use this rewrite_url generator. It works for most of my urls

    http://www.generateit.net/mod-rewrite/
    Great link, many thanks

    now i get rewrite_url:

    RewriteEngine On
    RewriteRule ^([^/]*)/([^/]*)\.html$ /index.php?category=$1&pic=$2 [L]

    so my url from:

    index.php?category=Public+Spaces%2FApartement&pic=CAPITAL-APARTEMENT4

    shorted to look like:

    Public+Spaces%2FApartement/CAPITAL-APARTEMENT4.html

    but it not solved at all, e.g.

    UPPERCASE to lowercase
    + to -
    %2F to &

    any another idea would be appreciate.

    Regards,


  •  

    Posting Permissions

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