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
  1. #1
    New Coder
    Join Date
    Mar 2010
    Posts
    19
    Thanks
    2
    Thanked 0 Times in 0 Posts

    please help me in htaccess

    my current url is:

    http://misc/expotechoman/page.php?page=about

    i want to rewrite it to:

    http://misc/expotechoman/about.html

    plz help

  • #2
    Codeasaurus Rex
    Join Date
    Jun 2008
    Location
    Redmond, WA
    Posts
    659
    Thanks
    31
    Thanked 100 Times in 94 Posts
    Take a look at this sticky on the top of the forum:

    Mod_Rewrite How-To Guide

    It will talk you through how to do rewrites like that. If you have trouble you can then post back and we'll help you. Unfortunately you won't be able to do it again in the future if we just create some code for you!
    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

  • #3
    New Coder
    Join Date
    Mar 2010
    Posts
    19
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by ShaneC View Post
    Take a look at this sticky on the top of the forum:

    Mod_Rewrite How-To Guide

    It will talk you through how to do rewrites like that. If you have trouble you can then post back and we'll help you. Unfortunately you won't be able to do it again in the future if we just create some code for you!
    Sir please help me i have not be able to solve my web address with htaccess

  • #4
    Codeasaurus Rex
    Join Date
    Jun 2008
    Location
    Redmond, WA
    Posts
    659
    Thanks
    31
    Thanked 100 Times in 94 Posts
    Code:
    Options +FollowSymLinks
    RewriteEngine On
    RewriteBase /
    
    RewriteRule ^expotechoman/about\.html$ expotechoman/page.php?page=about [L]
    Visiting http://mydomain.com/expotechoman/about.html will access the http://mydomain.com/expotechoman/page.php?page=about page.
    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

  • Users who have thanked ShaneC for this post:

    verak (01-24-2011)


  •  

    Posting Permissions

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