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

Thread: htacess

  1. #1
    Regular Coder
    Join Date
    Aug 2011
    Posts
    134
    Thanks
    20
    Thanked 0 Times in 0 Posts

    htacess

    I need help with .htaccess redirects.
    I need to redirect /members/member_test.php to members/test
    (Note: there is no test directory)
    i actually dont want to redirect. It should just show /members/test in the url.
    Last edited by coding_begins; 11-17-2011 at 10:58 PM.

  • #2
    Regular Coder
    Join Date
    Jan 2011
    Posts
    120
    Thanks
    6
    Thanked 2 Times in 2 Posts
    RewriteRule ^members/test$ members/member_test.php

    I think that will work, try that.


    Keep in mind, you have to direct them to members/test now in your code, instead of members/member_test.php.

  • #3
    Codeasaurus Rex
    Join Date
    Jun 2008
    Location
    Redmond, WA
    Posts
    659
    Thanks
    31
    Thanked 100 Times in 94 Posts
    Moved from PHP -> Apache.
    Unless otherwise stated, any code posted is most likely untested and may contain syntax errors.
    My posts, comments, code, and suggestions reflect only my personal views.
    Web Portfolio and Code Snippets: http://shanechism.com


  •  

    Posting Permissions

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