| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
AMH
Joined: 11 Oct 2006 Posts: 30
|
Posted: Wed Oct 11, 2006 8:58 am Post subject: PHPBB / SEO Looping problem |
|
|
Hi,
Problem:
The URL's are there but when you click on the forum it loops back to the index.
Why:
I acitivated Cpanel's stupid "Hotlink protection" as the board was getting hotlinked alot.
The end result. The htaccess file was empty. I copied the old code back into htaccess but that just did not solve anything. What am I missing?
eg : http://www.inetbridge.net/forum/monitor-driver-files-vf9.html
Anyone PLEASE. I did not install the hacks myself, but would like to fic it myself, after all I broke it.
Options +FollowSymlinks
RewriteEngine On
RewriteBase /
#########################################################
# PHPBB SEO REWRITE RULES #
#########################################################
# AUTHOR : DCZ http://www.phpbb-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# CATEGORIES
RewriteRule ^forum/cat([0-9]+)\.html$ forum/index.php?c=$1 [QSA,L]
# PAGINATED FORUM
RewriteRule ^forum([0-9]+)-([0-9]+)\.html$ forum/viewforum.php?f=$1&start=$2 [QSA,L]
# FORUM
RewriteRule ^forum([0-9]+)\.html$ forum/viewforum.php?f=$1 [QSA,L]
# PAGINATED TOPIC
RewriteRule ^forum/topic([0-9]+)-([0-9]+)\.html$ forum/viewtopic.php?t=$1&start=$2 [QSA,L]
# TOPIC
RewriteRule ^forum/topic([0-9]+)\.html$ forum/viewtopic.php?t=$1 [QSA,L]
# POST
RewriteRule ^forum/post([0-9]+)\.html$ forum/viewtopic.php?p=$1 [QSA,L]
#PROFILES
RewriteRule ^forum/member([0-9]+)\.html$ forum/profile.php?mode=viewprofile&u=$1 [QSA,L]
# END PHPBB PAGES
#####################################################
RewriteRule ^forum/sitemaps([0-9]+)\.html$ /forum/sitemaps.php?c=$1 [QSA,L]
RewriteRule ^forum/sitemaps\.html$ /forum/sitemaps.php [QSA,L]
RewriteRule ^forum/forum-m\ap\.html$ /forum/sitemaps.php?fim [QSA,L]
RewriteRule ^forum/forum-m\ap-([0-9]+)-([0-9]+)\.html$ /forum/sitemaps.php?fmp=$1&start=$2 [QSA,L]
RewriteRule ^forum/forum-m\ap-([0-9]+)\.html$ /forum/sitemaps.php?fmp=$1 [QSA,L]
 |
|
|
| Back to top |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14279
|
Posted: Wed Oct 11, 2006 9:13 am Post subject: Re: PHPBB / SEO Looping problem |
|
|
And welcome
Well, in fact you are just experiencing a good old 404, before your server redirect you to the index :
| Quote: | Response Headers - http://www.inetbridge.net/forum/monitor-driver-files-vf9.html
Date: Wed, 11 Oct 2006 09:10:21 GMT
Server: Apache/1.3.37 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.4.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7a
Keep-Alive: timeout=10, max=99
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html
404 Not Found |
So this means your .htaccess is not playing is role. Is it installed in the domain's root folder (eg one level up forum/) ?
And is mod_rewrite available on your server ?
As well, you could try disabling the hotlink prevention in cpanel for a bit, just in case (if so we would find another trick for hot-linking ).
++ |
_________________ Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________
Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche |
|
| Back to top |
|
 |
AMH
Joined: 11 Oct 2006 Posts: 30
|
Posted: Wed Oct 11, 2006 9:17 am Post subject: Re: PHPBB / SEO Looping problem |
|
|
Hi,
1. htaccess is in Root. The forum is in /forum
2. mod_rewrite is available
3. Hotlinking. When I turn it off and change the htaccess file. When I go back it shows that it is activated again. I will deactivate it again.
Thanks |
|
|
| Back to top |
|
 |
AMH
Joined: 11 Oct 2006 Posts: 30
|
Posted: Wed Oct 11, 2006 1:13 pm Post subject: Re: PHPBB / SEO Looping problem |
|
|
| Ok I fixed it, I think |
|
|
| Back to top |
|
 |
AMH
Joined: 11 Oct 2006 Posts: 30
|
Posted: Wed Oct 11, 2006 3:37 pm Post subject: Re: PHPBB / SEO Looping problem |
|
|
I upgraded PHPBB to the latest version and reinstalled everything from scratch! It worked well.
Now how do I stop people hotlinking the files to the tune of 1 GB a day?  |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14279
|
Posted: Thu Oct 12, 2006 1:51 pm Post subject: Re: PHPBB / SEO Looping problem |
|
|
A gig a day, jeez, you really need to fight
A simple way to cut most of it :
| Code: | RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://www.example.com/.*$ [NC]
ReWriteRule .*\.(gif|png|jpe?g)$ - [F,L] |
In your images folder's .htaccess or in the main one without the RewriteEngine On and before the other rewriterules.
We first check if the referer is not empty, and then if it's your site to be asking for it.
You can as well add some allowed domains like this :
| Code: | RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://www.example1.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.example2.com/.*$ [NC]
ReWriteRule .*\.(gif|png|jpe?g)$ - [F,L] |
And even output a custom image or page instead of denying the connection :
| Code: | | ReWriteRule .*\.(gif|png|jpe?g)$ scritp.php [L] |
Please start a new topic if you want more advises about hot-linking
++ |
_________________ Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________
Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche |
|
| Back to top |
|
 |
|
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |