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 4 of 4

Thread: Change URL

  1. #1
    New Coder
    Join Date
    Mar 2007
    Posts
    43
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Change URL

    I have this .htaccess file

    Code:
    #Turn on the rewrite engine
    Options +FollowSymlinks
    RewriteEngine on
    
    #Request routing
    RewriteRule ^([a-zA-Z_-]*)$	index.php?name=$1 [nc,qsa]
    Which allows me to goto mysite.com/folder/john instead of mysite.com/folder/index.php?name=john

    How can I do this so I can have mysite.com/folder/john/list my current url is mysite.com/folder/index.php?name=john&option=list

  2. #2
    New Coder
    Join Date
    Mar 2007
    Posts
    43
    Thanks
    1
    Thanked 0 Times in 0 Posts
    I have this but it means I must have 3 quires

    how can I have optional 3?

    RewriteRule ^([a-zA-Z0-9_-]*)/([a-zA-Z0-9_-]*)/([0-9_-]*)$ index.php?ID=$1&Code=$2&MonthCount=$3 [nc,qsa]

  3. #3
    New Coder
    Join Date
    Mar 2007
    Posts
    43
    Thanks
    1
    Thanked 0 Times in 0 Posts

  4. #4
    New Coder
    Join Date
    Apr 2016
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts
    They are sometimes called Clean URLs, SEO friendly links, or Pretty URLs. My hope is to pass along enough insight into how it works so that everyone can customize all of their own clean URLs by themselves, no matter how many variables the system needs to take in from the URL.


 

Tags for this Thread

Posting Permissions

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