+ Reply to Thread
Results 1 to 5 of 5




  

Thread: how to get rid of the file name in the website address?

      
  1. #1
    I'm New! tomo is on a distinguished road
    Join Date
    August 14, 2010
    Posts
    2
    Rep Power
    0
    Feedback Score
    0

    Default how to get rid of the file name in the website address?

    hi

    i have a question:
    how to get rid of the file name in the website address?
    i have: www.someaddress.com/somefile.htm
    but i'd like only www.someaddress.com to be seen, so u acctually don't see the file names at all.
    how to do it?

    thanks in advance

  2. #2
    Butterflies Forever Sami4u is a splendid one to beholdSami4u is a splendid one to beholdSami4u is a splendid one to beholdSami4u is a splendid one to beholdSami4u is a splendid one to beholdSami4u is a splendid one to beholdSami4u is a splendid one to beholdSami4u is a splendid one to beholdSami4u is a splendid one to beholdSami4u is a splendid one to beholdSami4u is a splendid one to behold Sami4u's Avatar
    Join Date
    March 8, 2008
    Location
    Lost on the Road
    Posts
    2,147
    Rep Power
    6
    Feedback Score
    0

    Default Re: how to get rid of the file name in the website address?

    Hi,

    I am a dummy but I would add one of these codes to your .htaccess file see if they help you.

    Best I could find.

    RewriteEngine on
    RewriteBase /
    RewriteCond %{REQUEST_fileNAME} !-d
    RewriteCond %{REQUEST_fileNAME} !-f
    RewriteRule ^(([^/]+/)*[^./]+)$ /$1.html [L]
    RewriteEngine on
    RewriteBase /
    RewriteCond %{REQUEST_URI} !(\.[^./]+)$
    RewriteCond %{REQUEST_fileNAME} !-d
    RewriteCond %{REQUEST_fileNAME} !-f
    RewriteRule (.*) /$1.html [L]
    RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^.]+)\.html\ HTTP
    RewriteRule ^([^.]+)\.html$ http://www.domain.com/$1 [R=301,L]
    :flower:

    Sami
    Check out the Current Celebrity News
    Bored??? Why not watch a Free Show

  3. #3
    Grand Masters vectro is just really nicevectro is just really nicevectro is just really nicevectro is just really nicevectro is just really nicevectro is just really nicevectro is just really nicevectro is just really nice vectro's Avatar
    Join Date
    September 5, 2008
    Location
    U.S.A.
    Posts
    1,499
    Rep Power
    4
    Feedback Score
    0

    Default Re: how to get rid of the file name in the website address?

    You could put the entire site in a single frame, but that might hurt your SEO.
    Vectro Web Hosting - Web hosting with solid tech support.

    x Proxy Host - Affordable PHP proxy hosting with proxy-specific features.

  4. #4
    GCM
    GCM is offline
    Jedi Master GCM is on a distinguished road GCM's Avatar
    Join Date
    January 18, 2009
    Location
    Michigan, United States
    Posts
    40
    Rep Power
    4
    Feedback Score
    0

    Default Re: how to get rid of the file name in the website address?

    Quote Originally Posted by Sami4u View Post
    Hi,

    I am a dummy but I would add one of these codes to your .htaccess file see if they help you.

    Best I could find.





    :flower:

    Sami
    What Sami said is pretty easy and painless. Your other option is creating a directory such as /images/, then create the content file as index.html and bam.
    Axigy - Shared and Dedicated Web Hosting Solutions
    Top Notch Dedicated Servers - 100% Uptime Guarantee + Geo-Diverse Network
    http://www.axigy.com

  5. #5
    I'm New! tomo is on a distinguished road
    Join Date
    August 14, 2010
    Posts
    2
    Rep Power
    0
    Feedback Score
    0

    Default Re: how to get rid of the file name in the website address?

    Quote Originally Posted by GCM View Post
    What Sami said is pretty easy and painless. Your other option is creating a directory such as /images/, then create the content file as index.html and bam.
    but how to do it? i don't really get it.
    where to put this code from sami?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

     

Similar Threads

  1. How to Include a php file directly to phpfox html file
    By vineethclm in forum Programming
    Replies: 9
    Last Post: Dec 29th, 2011, 7:31 pm
  2. Replies: 1
    Last Post: Mar 13th, 2010, 12:47 am
  3. How Can I block IP address in GA?
    By Aimhigh in forum Google
    Replies: 8
    Last Post: Nov 17th, 2008, 2:55 pm
  4. I.P address questions
    By jeffnmj in forum Internet
    Replies: 9
    Last Post: Jun 12th, 2008, 12:08 pm

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
WebTalkForums
WebTalkForums
Recent Forum Threads