+ Reply to Thread
Results 1 to 3 of 3

Thread: How to hide the .php from your url with .htaccess?

  1. #1
    bunny.invasion76 is offline x10Hosting Member bunny.invasion76 is an unknown quantity at this point
    Join Date
    Dec 2010
    Posts
    12

    Question How to hide the .php from your url with .htaccess?

    Hi,
    I am trying to hide the .php from my url's but it doesn't works when I put:
    Code:
    RewriteEngine On
    RewriteRule ^([^.]+[^/])$ $1.php
    It doesn't seems to work ;[

    I also saw on a site to check if the mod rewrite is enabled, but I don't even know how to do that...
    it is in the httpd.conf on this line:
    Code:
    #LoadModule rewrite_module modules/mod_rewrite.so
    Please someone help me out

    Thanks,

  2. #2
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: How to hide the .php from your url with .htaccess?

    A quick search of X10 would have turned up the likely solution (and a better rewrite ruleset).
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

  3. #3
    bunny.invasion76 is offline x10Hosting Member bunny.invasion76 is an unknown quantity at this point
    Join Date
    Dec 2010
    Posts
    12

    Thumbs up Re: How to hide the .php from your url with .htaccess?

    Quote Originally Posted by misson View Post
    A quick search of X10 would have turned up the likely solution (and a better rewrite ruleset).
    Thanks allot ;D

+ Reply to Thread

Similar Threads

  1. how do i hide
    By matthew1112 in forum Off Topic
    Replies: 12
    Last Post: 01-18-2010, 04:43 PM
  2. Hide files in a jpg
    By fierce in forum Computers & Technology
    Replies: 0
    Last Post: 12-06-2008, 07:06 PM
  3. hide .php extention
    By matt1213 in forum Programming Help
    Replies: 1
    Last Post: 06-01-2008, 07:21 PM
  4. Hide php?
    By elliott1 in forum Free Hosting
    Replies: 7
    Last Post: 10-12-2007, 12:13 AM
  5. [Hide] Hack
    By Chris S in forum Feedback and Suggestions
    Replies: 18
    Last Post: 01-30-2006, 07:59 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers