SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Threaded View

  1. #1
    SitePoint Member
    Join Date
    Jun 2013
    0 Post(s)
    0 Thread(s)

    Write .htaccess OK?

    I'm newbie.
    I'm building website by PHP/MySQL. While i setup file .htaccess, it have this code. However i don't know right or wrong?

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-l
    RewriteCond %{HTTP_HOST} !^example\.com$ [NC]
    RewriteRule ^(.*)$ $1 [R=301,L]

    Who can help me know it right or wrong?
    Last edited by cpradio; Jun 29, 2013 at 17:03. Reason: Removed unnecessary links


Posting Permissions

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