#1
  1. No Profile Picture
    Newbie
    SEO Chat Explorer (0 - 99 posts)

    Join Date
    Nov 2017
    Posts
    1
    Rep Power
    0

    Question How to optimize urls in .php site


    Hi am very much new to seo, can anyone direct me to correct path, how to optimize url in php site.

    eg: I have a www.mydomain.com/contact.php

    I need to to be www.mydomain.com/contact/us

    am trying it for 2 days, dont know how to optimize it.
  2. #2
  3. Contributing User
    SEO Chat Discoverer (100 - 499 posts)

    Join Date
    Sep 2016
    Location
    United Kingdom
    Posts
    195
    Rep Power
    234
    Hey man,

    Code:
     
    
    RewriteEngine On 
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^([\.]+$ $1.php [NC,L]
    Putting that into your .htaccess should remove all .php's... make a backup though, just incase

    There are loads of articles and other Q & A's about this issue all over the internet to be honest though!

    Just type into google "how to remove .php from URL", there's several ways
    Last edited by matt1966; Nov 11th, 2017 at 03:49 PM.

Similar Threads

  1. how to optimize my site with google? how to reconsider the site?
    By gleantech in forum Google Optimization
    Replies: 3
    Last Post: Mar 27th, 2013, 05:11 AM
  2. Need help with naming of URLs to optimize SEO
    By avieus in forum Search Engine Optimization
    Replies: 3
    Last Post: Mar 14th, 2009, 08:24 AM
  3. How To Optimize Framed Site And Flash Site ?
    By seodilip in forum Google Optimization
    Replies: 8
    Last Post: Nov 10th, 2006, 05:07 AM
  4. Optimize affiliate URLs for SEO purposes
    By Offshore in forum Search Engine Optimization
    Replies: 2
    Last Post: Mar 22nd, 2005, 02:36 PM
  5. Will a forum site optimize better than a static site?
    By alwayslearning in forum Google Optimization
    Replies: 2
    Last Post: Sep 1st, 2004, 09:20 PM

IMN logo majestic logo threadwatch logo seochat tools logo