9
   

phpBB Search Engine Optimization - Sessions, static ( SEO )

 
 
Ivan Minic
 
  1  
Wed 19 Jan, 2005 05:29 pm
@Craven de Kere
We found the problem, and solve it
It was enabled, but for my hosting it was disabled.
Thank you very much for the assistance and have a nice day
0 Replies
 
tracy457
 
  1  
Wed 19 Jan, 2005 10:03 pm
Mod RewriteEngine htaccess
Hi i have been using your mod on my forum and it is working well, i'm trying to put the forum on another host though and am having problems with the htaccess file.

This is the code I have been using on the other forum and it's working;

Code:RewriteEngine On
RewriteRule ^forums.* index.php [L,NC]
RewriteRule ^post-([0-9]*).html&highlight=([a-zA-Z0-9]*) viewtopic.php?p=$1&highlight=$2 [L,NC]
RewriteRule ^post-([0-9]*).* viewtopic.php?p=$1 [L,NC]
RewriteRule ^view-poll([0-9]*)-([0-9]*)-([a-zA-Z]*).* viewtopic.php?t=$1&postdays=$2&postorder=$3&vote=viewresult [L,NC]
RewriteRule ^about([0-9]*).html&highlight=([a-zA-Z0-9]*) viewtopic.php?t=$1&highlight=$2 [L,NC]
RewriteRule ^about([0-9]*).html&view=newest viewtopic.php?t=$1&view=newest [L,NC]
RewriteRule ^about([0-9]*)-([0-9]*)-([a-zA-Z]*)-([0-9]*).* viewtopic.php?t=$1&postdays=$2&postorder=$3&start=$4 [L,NC]
RewriteRule ^about([0-9]*)-([0-9]*).* viewtopic.php?t=$1&start=$2 [L,NC]
RewriteRule ^about([0-9]*).* viewtopic.php?t=$1 [L,NC]
.............etc.

The new host uses Apache 1.3 and the RewriteEngine code does not work on it. I have other htacces files on the site to stop hot linking and they where originally using RewriteEngine, but to get to work with the new host I used "SetEnvIfNoCase Referer"

I was wondering if anybody new the correct way to write code using "SetEnvIfNoCase", or another command if this is not the right one? for apache 1.3 servers?

something like this?
Code:
SetEnvIfNoCase Referer "^forums.* index.php" local_ref=1
SetEnvIfNoCase Referer "^post-([0-9]*).html&highlight=([a-zA-Z0-9]*) viewtopic.php?p=$1&highlight=$2" local_ref=1
SetEnvIfNoCase Referer "^post-([0-9]*).* viewtopic.php?p=$1" local_ref=1
SetEnvIfNoCase Referer "^view-poll([0-9]*)-([0-9]*)-([a-zA-Z]*).* viewtopic.php?t=$1&postdays=$2&postorder=$3&vote=viewresult" local_ref=1
SetEnvIfNoCase Referer "^about([0-9]*).html&highlight=([a-zA-Z0-9]*) viewtopic.php?t=$1&highlight=$2" local_ref=1
SetEnvIfNoCase Referer "^about([0-9]*).html&view=newest viewtopic.php?t=$1&view=newest" local_ref=1
SetEnvIfNoCase Referer "^about([0-9]*)-([0-9]*)-([a-zA-Z]*)-([0-9]*).* viewtopic.php?t=$1&postdays=$2&postorder=$3&start=$4" local_ref=1
SetEnvIfNoCase Referer "^about([0-9]*)-([0-9]*).* viewtopic.php?t=$1&start=$2" local_ref=1
SetEnvIfNoCase Referer "^about([0-9]*).* viewtopic.php?t=$1" local_ref=1
.............etc.


Another problem I am having which I don't know is realated to the mod or just the host I'm on, is that viewing IP's on the forum for posters are all coming up as the local router IP and not the posters public IP.

Any help would be much apreciated Very Happy
0 Replies
 
Craven de Kere
 
  1  
Wed 19 Jan, 2005 10:36 pm
Re: Mod RewriteEngine htaccess
tracy457 wrote:
The new host uses Apache 1.3 and the RewriteEngine code does not work on it.


I just want to quickly note that this is not particular to Apache 1.3


Quote:
I have other htacces files on the site to stop hot linking and they where originally using RewriteEngine, but to get to work with the new host I used "SetEnvIfNoCase Referer"

I was wondering if anybody new the correct way to write code using "SetEnvIfNoCase", or another command if this is not the right one? for apache 1.3 servers?


The rules were written for mod_rewrite and not SetEnvIfNoCase. As far as I know you can't use these rules that way.


Quote:
Another problem I am having which I don't know is realated to the mod or just the host I'm on, is that viewing IP's on the forum for posters are all coming up as the local router IP and not the posters public IP.


It's not something this mod causes.
0 Replies
 
Zend
 
  1  
Thu 20 Jan, 2005 02:04 am
I figured out my problem, it was not a modrewrite issue,
it turns out that in my .htaccess file, i had the "Options Indexes" turned on, and because i did not use +Indexes(which merges the options specified with your already server defined defaults, it was overriding and getting rid of my directory config for httpd. This override was throwing out the FollowSymLinks option, which modrewrite requires, i simply added the + and i stopped getting 403's thanks for all your help Craven!
0 Replies
 
tracy457
 
  1  
Thu 20 Jan, 2005 02:44 am
Hi thanks for the quick reply. I will check with my host for the IP issue, I didn't think it was the mod but needed to cover all the angles.

For the htaccess I will talk to my other host and see if they know a way to do it as they helped with the hot link one. If they can I will post it here as it may be of help to others.

Many thanks Smile
0 Replies
 
jcambert
 
  1  
Fri 21 Jan, 2005 03:18 pm
First off, thank you SO much for all the time you have put into this fantastic mod. Can anyone tell me where I can download the latest, bug free version?

JP
0 Replies
 
Craven de Kere
 
  1  
Fri 21 Jan, 2005 08:06 pm
See the second post in the thread. As has been said many times it is 100% free of bugs.

The problems people have have, without fail, been due to one or more of these three things:

1) their error in appying the mod, if you mess up the code it won't work.

2) their mod_rewrite configuration requires the url_base parameter, no biggie, just add it.

3) they do not have access to mod_rewrite on their server (and thusly should not use that portion of the mod).

You might want to wait, as I hope to release an updated version with some new features this weekend.
0 Replies
 
jcambert
 
  1  
Sat 22 Jan, 2005 07:04 pm
Ok, great, I'll wait. Can you clue us in as to what new features might be coming?

JP
0 Replies
 
amir abbas
 
  1  
Sun 23 Jan, 2005 03:02 am
hello ceraven

im installed this mod in my forum
i installed phpbb in subdomain like this

http://forum . mysitename . com

my question is about robots.txt

in root directory i installed phpnuke . phpnuke have a robots.txt and i add this code after phpnuke robots.txt . you know that not posible to place 2 robots.txt file in root ( 1 for nuke and one for able2know mod)

Code:User-agent: *

Disallow: /forum/


and place this robots.txt in subdomain folder like this
Code:
Disallow: /post-*.html$
Disallow: /updates-topic.html*$
Disallow: /stop-updates-topic.html*$
Disallow: /ptopic*.html$
Disallow: /ntopic*.html$


my work is true or not ?
i installed this mod from nov 2004 but only index page of my forum indexed
see this . this stats from 1 jan to 20 jan

http://img1.imagevenue.com/loc117/d98_googlebot.png

my forum indexed in beta.search .msn completly but only index page of my forum indexed in google

please guide me
excuse me for my poor english
0 Replies
 
benevolent001
 
  1  
Sun 23 Jan, 2005 11:51 am
Here is the recap...i have forum in /forum directory and i have placed the following code in the .htaccess file which is placed in forum directory itself...the problem is that whenever we click any forum say in index page we have three forums and we click on any one ...the link would be like this
forum-1.html but would return back to the index page...whats is wrong with this

when i write ^forums.*index.php in the first line it gives 404 its getting frustating now...

please help Thanks in advance

RewriteEngine On
RewriteRule ^forum.* index.php [L,NC]
RewriteRule ^post-([0-9]*).html&highlight=([a-zA-Z0-9]*) post-.html$1&highlight=$2 [L,NC]
RewriteRule ^post-([0-9]*).* post-.html$1 [L,NC]
RewriteRule ^view-poll([0-9]*)-([0-9]*)-([a-zA-Z]*).* about.html$1&postdays=$2&postorder=$3&vote=viewresult [L,NC]
RewriteRule ^about([0-9]*).html&highlight=([a-zA-Z0-9]*) about.html$1&highlight=$2 [L,NC]
RewriteRule ^about([0-9]*).html&view=newest about.html$1&view=newest [L,NC]
RewriteRule ^about([0-9]*)-([0-9]*)-([a-zA-Z]*)-([0-9]*).* about.html$1&postdays=$2&postorder=$3&start=$4 [L,NC]
RewriteRule ^about([0-9]*)-([0-9]*).* about.html$1&start=$2 [L,NC]
RewriteRule ^about([0-9]*).* about.html$1 [L,NC]
RewriteRule ^about([0-9]*).html about.html$1&start=$2&postdays=$3&postorder=$4&highlight=$5 [L,NC]
RewriteRule ^mark-forum([0-9]*).html* forum-.html$1&mark=topics [L,NC]
RewriteRule ^updates-topic([0-9]*).html* about.html$1&watch=topic [L,NC]
RewriteRule ^stop-updates-topic([0-9]*).html* about.html$1&unwatch=topic [L,NC]
RewriteRule ^forum-([0-9]*).html forum-.html$1 [L,NC]
RewriteRule ^forum-([0-9]*).* forum-.html$1 [L,NC]
RewriteRule ^topic-([0-9]*)-([0-9]*)-([0-9]*).* forum-.html$1&topicdays=$2&start=$3 [L,NC]
RewriteRule ^ptopic([0-9]*).* about.html$1&view=previous [L,NC]
RewriteRule ^ntopic([0-9]*).* about.html$1&view=next [L,NC]
0 Replies
 
Craven de Kere
 
  1  
Sun 23 Jan, 2005 07:28 pm
jcambert wrote:
Ok, great, I'll wait. Can you clue us in as to what new features might be coming?

JP


It would take me longer to do that than just release the mod. I'll try to do it over the next week, feel free to use the current mod as I will provide an easy upgrading diff file.

amir abbas wrote:
in root directory i installed phpnuke . phpnuke have a robots.txt and i add this code after phpnuke robots.txt . you know that not posible to place 2 robots.txt file in root ( 1 for nuke and one for able2know mod)


spiders will only check for one robots.txt file at your domain's root. one for each of your softwares is unecessary.

Quote:
my forum indexed in beta.search .msn completly but only index page of my forum indexed in google


So? This mod isn't going to make Google do what you want. It just allows them in, it doesn't mean they will want to.

If MSN's bot can get in then Google's can and they will when they decide your site is worth spidering.

Remember, this mod is about opening the door, so please don't ask me about when Google or any engine will come in, that is simply a matter of their algos.

Note: links to your site is the simple answer to what influences those algos.

benevolent001 wrote:
Here is the recap...i have forum in /forum directory and i have placed the following code in the .htaccess file which is placed in forum directory itself...the problem is that whenever we click any forum say in index page we have three forums and we click on any one ...the link would be like this
forum-1.html but would return back to the index page...whats is wrong with this

when i write ^forums.*index.php in the first line it gives 404 its getting frustating now...

please help Thanks in advance

RewriteEngine On
RewriteRule ^forum.* index.php [L,NC]


Try removing

RewriteRule ^forum.* index.php [L,NC]
0 Replies
 
sunray
 
  1  
Mon 24 Jan, 2005 09:43 am
Hello, after struggling with this mod all night, it's finally working. The HTML links are there, AND when I click on them I actually go where I'm supposed to. Very Happy

But I do have one problem so far. When I am logged in and browsing messages, I get this under a person's user name:

Their Name"
class="postdetails">Posts:
13

I don't get the "Posts:13" clickable link. When I try to click their name, I get a no results search page. This seems to happen most of the time, but sometimes it will show correctly. I tested it with Firefox and IE, so it's happening on both browsers.

Any hints as to where the bad code is, or how to fix it??
0 Replies
 
Craven de Kere
 
  1  
Mon 24 Jan, 2005 09:45 am
Look for a mistake in the viewtopic_body.tpl changes.
0 Replies
 
sunray
 
  1  
Mon 24 Jan, 2005 12:19 pm
OK, I don't know much about php, but I'm thinking the offending code is in here somewhere:

<td width="150" align="left" valign="top" class="{postrow.ROW_CLASS}"><span class="name"><a name="{postrow.U_POST_ID}"></a><b>{postrow.POSTER_NAME}</b></span><br /><span class="postdetails">{postrow.POSTER_RANK}<br />{postrow.RANK_IMAGE}{postrow.POSTER_AVATAR}<br /><br />{postrow.POSTER_ONLINE}<br />{postrow.POSTER_JOINED}<br /><a href="search.php?search_author={postrow.POSTER_NAME}" class="postdetails">{postrow.POSTER_POSTS}</a><br />{postrow.POSTER_KARMA} <a href="{postrow.U_APPLAUD}">{postrow.APPLAUD_IMG}</a><a href="{postrow.U_SMITE}">{postrow.SMITE_IMG}</a><br />{postrow.POSTER_FROM}</span><br /></td>

I added a Karma mod previously. I think this mod and that one are making a conflict. Judging by the code, is there an easy way to fix it, or do I need to scrap the karma mod? I'll play with the file, but it'll take me a while to fix it Crying or Very sad

Previewing this post, the code doesn't come out correctly. It's bolding things because of the < b > tag
0 Replies
 
Craven de Kere
 
  1  
Mon 24 Jan, 2005 09:43 pm
sunray wrote:

Previewing this post, the code doesn't come out correctly. It's bolding things because of the < b > tag


Use the code tags. That's what they are there for.

As to your markup there seem to be a number of html errors that are unrelated to this mod. I don't have the time to try to figure out what the code is trying to do so you might want to start a thread asking for html help with that.
0 Replies
 
sunray
 
  1  
Mon 24 Jan, 2005 10:42 pm
I think a lot of the errors in that code resulted when I copied and pasted it on here. It doesn't look exactly like that.

I went ahead and redid all the files related to these two mods, and I still get the same result. I also started with a fresh viewtopic_body.tpl and added the code that's in the install doc. Everything runs fine until code for the mod is added.

Is viewtopic_body.tpl the only file that controls the "Posts: xx" clickable link? Or could there be a coding error in another file, causing a correctly modded viewtopic_body.tpl file to malfunction?

At any rate, I'll go ahead and ask some html people if they have any idea about this problem.
0 Replies
 
kirtok
 
  1  
Mon 24 Jan, 2005 11:06 pm
Hi
I've been using your SEO mod for a while and I am extremely happy with the results. Google and other major search engines have been indexing my forum like crazy Smile Thanks for this great work.
But I have a problem and I will need your help.
With this Sanity worm, my forum has been bombed with worm bots (hundreds of visitors) and eating the bandwidth. Finally I've found a patch at phpbb to stop these bots crawling my forum. Here's the code they've suggested:
Code:RewriteEngine On
RewriteBase /

RewriteCond %{QUERY_STRING} ^(.*)highlight=\%2527 [OR]
RewriteCond %{HTTP_USER_AGENT} ^lwp [NC]
RewriteRule ^.*$ - [F,L]

I've added it to my .htaccess file, it has stopped the worms like a charm, but it caused a problem with my able2know SEO mod. Now I cannot get to any pages if I'm not logged in. Basically there's something I've to fix in .htaccess file. Here's my final .htaccess file:
Code:RewriteEngine On
RewriteRule ^community.* index.php [L,NC]
RewriteRule ^post-([0-9]*).html&highlight=([a-zA-Z0-9]*) viewtopic.php?p=$1&highlight=$2 [L,NC]
RewriteRule ^post-([0-9]*).* viewtopic.php?p=$1 [L,NC]
RewriteRule ^view-poll([0-9]*)-([0-9]*)-([a-zA-Z]*).* viewtopic.php?t=$1&postdays=$2&postorder=$3&vote=viewresult [L,NC]
RewriteRule ^ecommerce([0-9]*).html&highlight=([a-zA-Z0-9]*) viewtopic.php?t=$1&highlight=$2 [L,NC]
RewriteRule ^ecommerce([0-9]*).html&view=newest viewtopic.php?t=$1&view=newest [L,NC]
RewriteRule ^ecommerce([0-9]*)-([0-9]*)-([a-zA-Z]*)-([0-9]*).* viewtopic.php?t=$1&postdays=$2&postorder=$3&start=$4 [L,NC]
RewriteRule ^ecommerce([0-9]*)-([0-9]*).* viewtopic.php?t=$1&start=$2 [L,NC]
RewriteRule ^ecommerce([0-9]*).* viewtopic.php?t=$1 [L,NC]
RewriteRule ^ecommerce([0-9]*).html viewtopic.php?t=$1&start=$2&postdays=$3&postorder=$4&highlight=$5 [L,NC]
RewriteRule ^mark-forum([0-9]*).html* viewforum.php?f=$1&mark=topics [L,NC]
RewriteRule ^updates-topic([0-9]*).html* viewtopic.php?t=$1&watch=topic [L,NC]
RewriteRule ^stop-updates-topic([0-9]*).html* viewtopic.php?t=$1&unwatch=topic [L,NC]
RewriteRule ^forum-([0-9]*).html viewforum.php?f=$1 [L,NC]
RewriteRule ^forum-([0-9]*).* viewforum.php?f=$1 [L,NC]
RewriteRule ^topic-([0-9]*)-([0-9]*)-([0-9]*).* viewforum.php?f=$1&topicdays=$2&start=$3 [L,NC]
RewriteRule ^ptopic([0-9]*).* viewtopic.php?t=$1&view=previous [L,NC]
RewriteRule ^ntopic([0-9]*).* viewtopic.php?t=$1&view=next [L,NC]

RewriteEngine On
RewriteBase /

RewriteCond %{QUERY_STRING} ^(.*)highlight=\%2527 [OR]
RewriteCond %{HTTP_USER_AGENT} ^lwp [NC]
RewriteRule ^.*$ - [F,L]

What should I change to fix this problem and happily live without worms and with this great worm Smile
Any help would appreciated, and thanks in advance
0 Replies
 
hostmysite
 
  1  
Tue 25 Jan, 2005 08:36 am
Double Username
I did all the SEO modifications 3 times to make sure all was done right... however on my main forum page I have the usernames doubled. As in:

BobBob

On the right where it states the username of the last poster. I've searched through every instruction and can not see how this occured. Can anyone please help me?

-Darrell
0 Replies
 
huntza
 
  1  
Tue 25 Jan, 2005 01:11 pm
Hi everythings working except this small thing, can anyone help?

Warning: Cannot modify header information - headers already sent by (output started at /home/fashionf/public_html/language/lang_english/lang_main.php:1027) in /home/fashionf/public_html/includes/page_header.php on line 475

Warning: Cannot modify header information - headers already sent by (output started at /home/fashionf/public_html/language/lang_english/lang_main.php:1027) in /home/fashionf/public_html/includes/page_header.php on line 477

Warning: Cannot modify header information - headers already sent by (output started at /home/fashionf/public_html/language/lang_english/lang_main.php:1027) in /home/fashionf/public_html/includes/page_header.php on line 478
0 Replies
 
huntza
 
  1  
Tue 25 Jan, 2005 01:24 pm
and here is the code its referring too

header ('Cache-Control: private, pre-check=0, post-check=0, max-age=0');
}
header ('Expires: 0');
header ('Pragma: no-cache');

$template->pparse('overall_header');
0 Replies
 
 

Related Topics

SEO - Going from 0 PR on up - Discussion by jespah
How Rich Pins work ??? - Question by OnceUponAtime
Need a bit of Google advice - Question by bible quizzer
Google Indexing Issue - Question by brainstudioz
Bing Search results - Discussion by iankyra
What is best way for Off-Page seo in 2017? - Question by honesttravel1
 
Copyright © 2024 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 3.87 seconds on 11/25/2024 at 05:52:04