phpBB SEO
Boards
Directory  
SEO  
Downloads
  phpBB SEO : Search Engine Optimization, Directory, Forums  
Index
Forums
Annuaire
Référencement
Télécharger
 
  Search Rechercher
    Register
Username :  Password :  Log me on automatically each visit  
S'enregistrer  
 
   
[archive] phpBB SEO Advanced mod Rewrite V 0.0.2
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8  Next
 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB mod Rewrite  » Advanced mod Rewrite
::  
Author Message
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14279

[archive] phpBB SEO Advanced mod Rewrite V 0.0.2Posted: Fri Nov 24, 2006 12:11 am    Post subject: Re: [archive] phpBB SEO Advanced mod Rewrite V 0.0.2

It's not a db error, it's a php one.

You must have mess up a bit while editing the function.php file, something near line 291, like an missing ; or '

The way the mod is build make it almost impossible to mess up with anything, the worst thing that could happen are un-rewritten links, at first, that's why there are some add-ons for mods.

++

_________________
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
Visit poster's website
arch stanton
PR1
PR1


Joined: 04 Oct 2006
Posts: 116

[archive] phpBB SEO Advanced mod Rewrite V 0.0.2Posted: Fri Nov 24, 2006 12:13 am    Post subject: Re: [archive] phpBB SEO Advanced mod Rewrite V 0.0.2

Here is my function.php:

*code deleted for now*


Last edited by arch stanton on Fri Nov 24, 2006 12:35 am; edited 1 time in total
Back to top
Visit poster's website
arch stanton
PR1
PR1


Joined: 04 Oct 2006
Posts: 116

[archive] phpBB SEO Advanced mod Rewrite V 0.0.2Posted: Fri Nov 24, 2006 12:28 am    Post subject: Re: [archive] phpBB SEO Advanced mod Rewrite V 0.0.2

Can't see any missing ) or ;
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14279

[archive] phpBB SEO Advanced mod Rewrite V 0.0.2Posted: Fri Nov 24, 2006 12:33 am    Post subject: Re: [archive] phpBB SEO Advanced mod Rewrite V 0.0.2

Please edit your post, posting this much of code make it impossible for everybody to follow the topic properly.

Preferably post small part of codes or links to zip files.

Anyway, there is a missing coma ::

Code:
                           'url' => append_sid(format_url($forum_rows[$j]['forum_name']) . "-vf" . $forum_rows[$k]['forum_id'] . ".html")


Should be :
Code:

                           'url' => append_sid(format_url($forum_rows[$j]['forum_name']) . "-vf" . $forum_rows[$k]['forum_id'] . ".html"),


++

_________________
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
Visit poster's website
arch stanton
PR1
PR1


Joined: 04 Oct 2006
Posts: 116

[archive] phpBB SEO Advanced mod Rewrite V 0.0.2Posted: Fri Nov 24, 2006 12:49 am    Post subject: Re: [archive] phpBB SEO Advanced mod Rewrite V 0.0.2

Thanks. Smile

That was a partial success. The index page is now showing and the mouseover shows the new friendly URLs - but as soon as you try to click on anything you get a 404 not found error.

The links on the latest posts are still showing the old style viewtopic.php?t=3 type of URL (but that's because I haven't made the today/yesterday changes yet).

The scrolling box at the top (which is from the 'latest topics on index' mod) is also showing the old style viewtopic.php?t=3 type of URL, so presumably I will need something to modify this otherwise I will get duplicate URLs?
Back to top
Visit poster's website
arch stanton
PR1
PR1


Joined: 04 Oct 2006
Posts: 116

[archive] phpBB SEO Advanced mod Rewrite V 0.0.2Posted: Fri Nov 24, 2006 12:56 am    Post subject: Re: [archive] phpBB SEO Advanced mod Rewrite V 0.0.2

I tried taking out the / before test in the .htaccess but it didn't make any difference.

OK, I'm going to sleep on it. I'm tired and I guess you are too. Thanks for all the help so far dude. Smile

Edit: have played around some more with the .htaccess this morning, still no joy at the moment. Does the fact that "Options +FollowSymlinks" is missing make a difference? I have tried putting it in but that hasn't helped either.

In the meantime, I'll press on with adding simple subforums to my live forum, wish me luck! Wink
Back to top
Visit poster's website
arch stanton
PR1
PR1


Joined: 04 Oct 2006
Posts: 116

[archive] phpBB SEO Advanced mod Rewrite V 0.0.2Posted: Sat Nov 25, 2006 10:57 am    Post subject: Re: [archive] phpBB SEO Advanced mod Rewrite V 0.0.2

Still trying to fix this by trial and error, not had much joy so far.

This is the top part of the current .htaccess:

Code:
#--ANTI-HOTLINK--
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^(http://|https://)(www.)?(gladtalk.co.uk).*$ [NC]
RewriteRule \.(jpe?g|gif|bmp|png)$ - [F]

#++ANTI-HOTLINK++

# Here the www prefix redirection ...
RewriteCond %{HTTP_HOST} ^gladtalk\.co.uk$ [NC]
RewriteRule ^(.*) http://www.gladtalk.co.uk/$1 [QSA,L,R=301]


And here are some of the rewrite rules:

Code:
# FORUM PROTECTION RULE
RewriteRule ^phpbb/.+/([^/]+\.html)$ test/index.php [R=301,L]
# CATEGORIES
RewriteRule ^phpbb/.+-vc([0-9]+)\.html$ test/index.php?c=$1 [QSA,L]
# PAGINATED FORUM
RewriteRule ^phpbb/.+-vf([0-9]+)-([0-9]+)\.html$ test/viewforum.php?f=$1&start=$2 [QSA,L]
# FORUM
RewriteRule ^phpbb/.+-vf([0-9]+)\.html$ test/viewforum.php?f=$1 [QSA,L]


If I try to access welcome-vf1.html, I get the 404 error: The requested URL /test/welcome-vf1.html was not found on this server. But if I go to /test/viewforum.php?f=1, I can still access it.

What should come after the ^ at the start of the rewrite rule, given that my test forum is in a folder called test? I tried changing it to test to see if that worked but it didn't.
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14279

[archive] phpBB SEO Advanced mod Rewrite V 0.0.2Posted: Sat Nov 25, 2006 12:43 pm    Post subject: Re: [archive] phpBB SEO Advanced mod Rewrite V 0.0.2

Please do not answer this much to yourself, the EDIT function is here to help out Wink

Anyway, you're close to it Wink

You just need to set the correct path in your rewriterules :
dcz wrote:

2) Well, it should not mess up with anything since we include the path in the rewriterules. They will only be used within the test/ folder.

So you just need to use the second .htaccess in the mod, the one for when phpBB is not installed in the root and change the phpBB/ paths to test/.
So just put those after the other rewriterules that may be already there, and it will be ok.


And yes, we need a little patch for the last topic on index mod. Post a request thread in the phpBB SEO mod rewrite forum so I'll give it to you while making it possible for other to find it Wink

Don't worry, it will be adding one or two lines of codes, very simple.

++

_________________
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
Visit poster's website
arch stanton
PR1
PR1


Joined: 04 Oct 2006
Posts: 116

[archive] phpBB SEO Advanced mod Rewrite V 0.0.2Posted: Sat Nov 25, 2006 1:24 pm    Post subject: Re: [archive] phpBB SEO Advanced mod Rewrite V 0.0.2

OK, sorry re the multiple posts. Embarassed

So should my rewrite rules look something like this?

Code:
RewriteRule ^test/.+-vf([0-9]+)\.html$ test/viewforum.php?f=$1 [QSA,L]


I have tried that and tried putting a / before the test. Still no joy. Sad

And yes, I will put a request in the forum for the last topic on index mod. Smile
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14279

[archive] phpBB SEO Advanced mod Rewrite V 0.0.2Posted: Sat Nov 25, 2006 1:27 pm    Post subject: Re: [archive] phpBB SEO Advanced mod Rewrite V 0.0.2

Is your .htaccess located at the domain root level (eg one level above test/) ?

And are you sure mod_rewrite module is loaded on your server ?

_________________
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
Visit poster's website
arch stanton
PR1
PR1


Joined: 04 Oct 2006
Posts: 116

[archive] phpBB SEO Advanced mod Rewrite V 0.0.2Posted: Sat Nov 25, 2006 1:32 pm    Post subject: Re: [archive] phpBB SEO Advanced mod Rewrite V 0.0.2

dcz wrote:
Is your .htaccess located at the domain root level (eg one level above test/) ?

Yes.

dcz wrote:
And are you sure mod_rewrite module is loaded on your server ?

I'll have to ask the hosting company to be certain. But my WordPress blog (different domain but on the same server) uses .htaccess mod_rewrites, so I think it must be installed.
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14279

[archive] phpBB SEO Advanced mod Rewrite V 0.0.2Posted: Sat Nov 25, 2006 1:47 pm    Post subject: Re: [archive] phpBB SEO Advanced mod Rewrite V 0.0.2

So you should have mod_rewrite available.

Make sure you do not have any .htaccess in the test/ folder.

And, are there any additional rewriterules in your root's .htaccess ? from wordpress maybe ?

Code:

RewriteRule ^test/.+-vf([0-9]+)\.html$ test/viewforum.php?f=$1 [QSA,L]


or

Code:
RewriteRule ^test/.+-vf([0-9]+)\.html$ /test/viewforum.php?f=$1 [QSA,L]


should work.

++

_________________
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
Visit poster's website
arch stanton
PR1
PR1


Joined: 04 Oct 2006
Posts: 116

[archive] phpBB SEO Advanced mod Rewrite V 0.0.2Posted: Sat Nov 25, 2006 1:53 pm    Post subject: Re: [archive] phpBB SEO Advanced mod Rewrite V 0.0.2

Ah, there was some .htaccess in the test forum folder. I've deleted it and now it works. You genius! Very Happy

OK, heading out now and will post the request for the other mod later. Smile
Back to top
Visit poster's website
arch stanton
PR1
PR1


Joined: 04 Oct 2006
Posts: 116

[archive] phpBB SEO Advanced mod Rewrite V 0.0.2Posted: Sat Nov 25, 2006 8:47 pm    Post subject: A small problem with subforums

*wrong thread*
Back to top
Visit poster's website
XtR



Joined: 16 Dec 2006
Posts: 11

[archive] phpBB SEO Advanced mod Rewrite V 0.0.2Posted: Sat Dec 16, 2006 4:57 am    Post subject: Re: [archive] phpBB SEO Advanced mod Rewrite V 0.0.2

Hi,

This is my first post. Thx for all the helpfull threads You opened my mind about SEO. My question is can i use this mod in PhpBB2 Plus 1.52?

I tried to edit the files but i couldnt find which lines to edit...

Thx
XtR
Back to top
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB mod Rewrite  » Advanced mod Rewrite
Page 6 of 8 Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8  Next

Navigation Similar Topics

Jump to: