Results 1 to 4 of 4

Thread: How to remove .php from url?

  1. #1
    Join Date
    Dec 2014
    Location
    India
    Posts
    1
    Rep Power
    0

    How to remove .php from url?

    Dear Friends,

    Please help me.

    I want to remove .php From url.
    .php replace with .html

    Thank You.

  2. #2
    Join Date
    Oct 2012
    Location
    King Stone
    Posts
    2
    Rep Power
    0
    you can try to add .htaccess file using this code

    Code:
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^([^\.]+)$ $1.php [NC,L]
    or

    Code:
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^([^\.]+)$.html $1.php [NC,L]

  3. #3
    Join Date
    Mar 2015
    Location
    UK
    Posts
    7
    Rep Power
    0
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^([^\.]+)$ $1.php [NC,L]

    That's what I personally use. Does the trick. No problems.

  4. #4
    Join Date
    Dec 2015
    Location
    India,Punjab,Ludhiana
    Posts
    6
    Rep Power
    0
    i actually know how to How to remove .php from url?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Some tricks to remove the ads...
    By vincevincevince in forum Free Hosting Discussion Forum
    Replies: 3
    Last Post: 17-01-2015, 12:11 AM
  2. nak remove password
    By awida in forum Mamak Stall
    Replies: 10
    Last Post: 14-11-2005, 02:42 PM
  3. nak remove password
    By awida in forum Mamak Stall
    Replies: 9
    Last Post: 14-11-2005, 12:32 PM
  4. How to remove this thing?
    By eric in forum Website Design
    Replies: 26
    Last Post: 05-03-2004, 10:34 AM

Posting Permissions

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

Search Engine Optimization by vBSEO 3.5.0 RC1 PL1

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112