www.webdeveloper.com
Results 1 to 3 of 3

Thread: [RESOLVED] 301 Redirect- how to direct a page without an extension

  1. #1
    Join Date
    Jan 2004
    Location
    Switzerland
    Posts
    154

    resolved [RESOLVED] 301 Redirect- how to direct a page without an extension

    I'd like to know how (or if) I can create a 301 redirect so that if someone enters a URL without an extension, i.e.:

    www.mydomain.com/about (no extension)


    can I get those to redirect to an .shtml file?



    Thank you, for your help.

  2. #2
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    In your .htaccess file:
    Code:
    <FilesMatch .*>
       Options +MultiViews
    </FilesMatch>
    www.mydomain.com/about and www.mydomain.com/about.shtml would open the same document; about.shtml.

  3. #3
    Join Date
    Jan 2004
    Location
    Switzerland
    Posts
    154
    Perfect. Thank you so much.

Thread Information

Users Browsing this Thread

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

Tags for this Thread

Posting Permissions

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



Recent Articles