1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

I begging for a simple solution to this forwarding issue.

Discussion in 'Cloaking and Content Generators' started by wirefly, Mar 17, 2015.

  1. wirefly

    wirefly Newbie

    Joined:
    Aug 4, 2011
    Messages:
    35
    Likes Received:
    1
    If I have a domain name called "example".com. Im looking for a solution where people can type in "example.com/phones" and it forwards to the home page "example".com

    P.S. I do not want to create a folder or file for "example.com/phones". I just want to point example.com with any "/ extension" to the home page. Please help if you can? Thnkx.

    Basically, I want a person to be able to type any extension with the domain name after the slash and automatically point to the home page.

    I need a simple solution.
     
  2. Panther28

    Panther28 Jr. VIP Jr. VIP

    Joined:
    May 2, 2010
    Messages:
    2,884
    Likes Received:
    3,878
    Occupation:
    Internet.
    Location:
    Internet.
    Home Page:
    • Thanks Thanks x 1
  3. jamie3000

    jamie3000 Supreme Member

    Joined:
    Jun 30, 2014
    Messages:
    1,413
    Likes Received:
    654
    Occupation:
    Finance coder looking for semi-retirement
    Location:
    uk
    RewriteEngine on
    RewriteRule ^.+$ /index.php [L]
     
  4. jamie3000

    jamie3000 Supreme Member

    Joined:
    Jun 30, 2014
    Messages:
    1,413
    Likes Received:
    654
    Occupation:
    Finance coder looking for semi-retirement
    Location:
    uk
    I'm assuming you know what .htaccess is and you're running Apache?
     
  5. wirefly

    wirefly Newbie

    Joined:
    Aug 4, 2011
    Messages:
    35
    Likes Received:
    1
    The solution has been fixed everyone. Thank you to all bhw members for your assistance.