| |
|
| :: |
| Author |
Message |
funwadi PR0

Joined: 06 May 2007 Posts: 53 Location: UAE
|
Posted: Sun May 06, 2007 10:55 am Post subject: adv mod_rewrite V0-2-4 (404 Not Found) |
|
|
Hello everyone,
I have just installed the MOD adv_mod_rewriteV0-2-4 at www.pkvehicles.com/forum I installed it under Folder.
So my .htacess is like this
| Quote: | # -FrontPage-
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName www.traders.cc
AuthUserFile /home/traders/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/traders/public_html/_vti_pvt/service.grp
RewriteEngine On
RewriteBase /
#########################################################
# PHPBB SEO REWRITE RULES #
#########################################################
# AUTHOR : DCZ http://www.phpbb-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# FORUM INDEX (un-comment if used)
# RewriteRule ^vehicles/forum/index\.html$ vehicles/forum/index.php [QSA,L,NC]
# FORUM PROTECTION RULE
# RewriteRule ^vehicles/forum[a-z0-9_-]*/([^/]+\.html)$ vehicles/forum/index.php [R=301,L,NC]
# CATEGORIES
RewriteRule ^vehicles/forum[a-z0-9_-]*-c([0-9]+)\.html$ vehicles/forum/index.php?c=$1 [QSA,L,NC]
# PAGINATED FORUM
RewriteRule ^vehicles/forum[a-z0-9_-]*-f([0-9]+)-([0-9]+)\.html$ vehicles/forum/viewforum.php?f=$1&start=$2 [QSA,L,NC]
# FORUM
RewriteRule ^vehicles/forum[a-z0-9_-]*-f([0-9]+)\.html$ vehicles/forum/viewforum.php?f=$1 [QSA,L,NC]
# PAGINATED TOPIC
RewriteRule ^vehicles/forum[a-z0-9_-]*-t([0-9]+)-([0-9]+)\.html$ vehicles/forum/viewtopic.php?t=$1&start=$2 [QSA,L,NC]
# TOPIC
RewriteRule ^vehicles/forum[a-z0-9_-]*-t([0-9]+)\.html$ vehicles/forum/viewtopic.php?t=$1 [QSA,L,NC]
# POST
RewriteRule ^vehicles/forum/post([0-9]+)\.html$ vehicles/forum/viewtopic.php?p=$1 [QSA,L,NC]
#PROFILES
RewriteRule ^vehicles/forum/member([0-9]+)\.html$ vehicles/forum/profile.php?mode=viewprofile&u=$1 [QSA,L,NC]
# END PHPBB PAGES
##################################################### |
and for example when i open this http://www.pkvehicles.com/forum/auto-audio-and-electronics-f328.html
so it says
| Quote: | Not Found
The requested URL /forum/auto-audio-and-electronics-f328.html was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. |
I even did like this
| Quote: | RewriteEngine On
RewriteBase /
#########################################################
# PHPBB SEO REWRITE RULES #
#########################################################
# AUTHOR : DCZ http://www.phpbb-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# FORUM INDEX (un-comment if used)
# RewriteRule ^forum/index\.html$ /forum/index.php [QSA,L]
# FORUM PROTECTION RULE
# RewriteRule ^forum/.*/([^/]+\.html)$ /forum/index.php [R=301,L]
# CATEGORIES
RewriteRule ^forum/.*-c([0-9]+)\.html$ /forum/index.php?c=$1 [QSA,L]
# PAGINATED FORUM
RewriteRule ^forum/.*-f([0-9]+)-([0-9]+)\.html$ /forum/viewforum.php?f=$1&start=$2 [QSA,L]
# FORUM
RewriteRule ^forum/.*-f([0-9]+)\.html$ /forum/viewforum.php?f=$1 [QSA,L]
# PAGINATED TOPIC
RewriteRule ^forum/.*-t([0-9]+)-([0-9]+)\.html$ /forum/viewtopic.php?t=$1&start=$2 [QSA,L]
# TOPIC
RewriteRule ^forum/.*-t([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
#####################################################
# -FrontPage-
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName www.traders.cc
AuthUserFile /home/traders/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/traders/public_html/_vti_pvt/service.grp
|
but still the same error
And at last i tried this also
| Quote: | RewriteEngine On
RewriteBase /
#########################################################
# PHPBB SEO REWRITE RULES #
#########################################################
# AUTHOR : DCZ http://www.phpbb-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# FORUM INDEX (un-comment if used)
# RewriteRule ^vehicles/forum/index\.html$ vehicles/forum/index.php [QSA,L]
# FORUM PROTECTION RULE
# RewriteRule ^vehicles/forum/.*/([^/]+\.html)$ vehicles/forum/index.php [R=301,L]
# CATEGORIES
RewriteRule ^vehicles/forum/.*-c([0-9]+)\.html$ vehicles/forum/index.php?c=$1 [QSA,L]
# PAGINATED FORUM
RewriteRule ^vehicles/forum/.*-f([0-9]+)-([0-9]+)\.html$ vehicles/forum/viewforum.php?f=$1&start=$2 [QSA,L]
# FORUM
RewriteRule ^vehicles/forum/.*-f([0-9]+)\.html$ vehicles/forum/viewforum.php?f=$1 [QSA,L]
# PAGINATED TOPIC
RewriteRule ^vehicles/forum/.*-t([0-9]+)-([0-9]+)\.html$ vehicles/forum/viewtopic.php?t=$1&start=$2 [QSA,L]
# TOPIC
RewriteRule ^vehicles/forum/.*-t([0-9]+)\.html$ vehicles/forum/viewtopic.php?t=$1 [QSA,L]
# POST
RewriteRule ^vehicles/forum/post([0-9]+)\.html$ vehicles/forum/viewtopic.php?p=$1 [QSA,L]
#PROFILES
RewriteRule ^vehicles/forum/member([0-9]+)\.html$ vehicles/forum/profile.php?mode=viewprofile&u=$1 [QSA,L]
# END PHPBB PAGES
#####################################################
# -FrontPage-
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName www.traders.cc
AuthUserFile /home/traders/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/traders/public_html/_vti_pvt/service.grp
|
and tried to open this URL http://www.pkvehicles.com/forum/announcements-f1.html
than the Error slightly changes to
| Quote: | Not Found
The requested URL /vehicles/forum/viewforum.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. |
Can any one please help me out. I really need this MOD to be working on my board.
Thanks a bunch
Regards,
AB |
|
|
| Back to top |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15242
|
Posted: Sun May 06, 2007 11:44 am Post subject: Re: adv mod_rewrite V0-2-4 (404 Not Found) |
|
|
And welcome
First, you need to make sure mod_rewrite is available on your server.
Then, the .htaccess should be located at the domain's root level, eg one level above the forum/ folder.
And, you should use :
| Code: |
# -FrontPage-
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName www.traders.cc
AuthUserFile /home/traders/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/traders/public_html/_vti_pvt/service.grp
RewriteEngine On
RewriteBase /
#########################################################
# PHPBB SEO REWRITE RULES #
#########################################################
# AUTHOR : DCZ http://www.phpbb-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# FORUM INDEX (un-comment if used)
# RewriteRule ^forum/index\.html$ /forum/index.php [QSA,L,NC]
# FORUM PROTECTION RULE
# RewriteRule ^forum/[a-z0-9_-]*/([^/]+\.html)$ /forum/index.php [R=301,L,NC]
# CATEGORIES
RewriteRule ^forum/[a-z0-9_-]*-c([0-9]+)\.html$ /forum/index.php?c=$1 [QSA,L,NC]
# PAGINATED FORUM
RewriteRule ^forum/[a-z0-9_-]*-f([0-9]+)-([0-9]+)\.html$ /forum/viewforum.php?f=$1&start=$2 [QSA,L,NC]
# FORUM
RewriteRule ^forum/[a-z0-9_-]*-f([0-9]+)\.html$ /forum/viewforum.php?f=$1 [QSA,L,NC]
# PAGINATED TOPIC
RewriteRule ^forum/[a-z0-9_-]*-t([0-9]+)-([0-9]+)\.html$ /forum/viewtopic.php?t=$1&start=$2 [QSA,L,NC]
# TOPIC
RewriteRule ^forum/[a-z0-9_-]*-t([0-9]+)\.html$ /forum/viewtopic.php?t=$1 [QSA,L,NC]
# POST
RewriteRule ^forum/post([0-9]+)\.html$ /forum/viewtopic.php?p=$1 [QSA,L,NC]
#PROFILES
RewriteRule ^forum/member([0-9]+)\.html$ /forum/profile.php?mode=viewprofile&u=$1 [QSA,L,NC]
# END PHPBB PAGES
##################################################### |
As said in the install, it's possible that you'll need to get rid of the slash ("/") at the beginning of the forum path : /forum/ vs forum/
Besides, if mod_rewrite is on, it 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 |
|
 |
funwadi PR0

Joined: 06 May 2007 Posts: 53 Location: UAE
|
Posted: Sun May 06, 2007 12:37 pm Post subject: Re: adv mod_rewrite V0-2-4 (404 Not Found) |
|
|
Thanks a lot
I am so happy Sir that you can't even imagine it
You are great and your support as well.
Can you please check and verify it's working everywhere fine or not www.funwadi.com/forum
By the way Sir, what other MODs i should install such as Guest_session_mod.
Can you tell me that the pages which google have indexed are around 9,600 for my site so what will happen to them? How should i keep them also as well as let search engine to index the new one's too  |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15242
|
|
| Back to top |
|
 |
funwadi PR0

Joined: 06 May 2007 Posts: 53 Location: UAE
|
Posted: Sun May 06, 2007 1:24 pm Post subject: Re: adv mod_rewrite V0-2-4 (404 Not Found) |
|
|
Woww. That's superb. You have some great phpBB SEO MODs. Thanks a lot for this. I have already started recommending about all your MODs to my friends who have installed phpBB  |
|
|
| Back to top |
|
 |
funwadi PR0

Joined: 06 May 2007 Posts: 53 Location: UAE
|
Posted: Sun May 06, 2007 1:26 pm Post subject: Re: adv mod_rewrite V0-2-4 (404 Not Found) |
|
|
By the way, what should i do with robots.txt
I haven't done anything with it yet. Where to place and what is the necessity of it? |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15242
|
Posted: Sun May 06, 2007 1:45 pm Post subject: Re: adv mod_rewrite V0-2-4 (404 Not Found) |
|
|
In the end, and as advised in the release thread, you should use :
| Code: | User-agent: *
Disallow: /forum/viewtopic.php
Disallow: /forum/viewforum.php
Disallow: /forum/index.php?
Disallow: /forum/posting.php
Disallow: /forum/groupcp.php
Disallow: /forum/search.php
Disallow: /forum/login.php
Disallow: /forum/privmsg.php
Disallow: /forum/post
Disallow: /forum/member
Disallow: /forum/profile.php
Disallow: /forum/memberlist.php
Disallow: /forum/faq.php |
But since many "vanilla" url where already indexed, you should just use :
| Code: | User-agent: *
Disallow: /forum/posting.php
Disallow: /forum/groupcp.php
Disallow: /forum/search.php
Disallow: /forum/login.php
Disallow: /forum/privmsg.php
Disallow: /forum/post
Disallow: /forum/member
Disallow: /forum/profile.php
Disallow: /forum/memberlist.php
Disallow: /forum/faq.php |
In order to let the zero duplicate do its job on the regular viewforum.php, viewtopic.php and index.php URLs.
Then, after couple month, when it will be for sure that search engines acknowledged the updates on the urls, you'll be able to put all the disallows in it, just to make it easier for all bots.
Your robots.txt, as always, should be installed at the domain's root level, eg above the forum/ folder in your case.
Migrating using HTTP 301 redirect does works nicely, it's a fact
++ |
_________________ 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 |
|
 |
funwadi PR0

Joined: 06 May 2007 Posts: 53 Location: UAE
|
Posted: Sun May 06, 2007 2:00 pm Post subject: Re: adv mod_rewrite V0-2-4 (404 Not Found) |
|
|
| dcz wrote: | In the end, and as advised in the release thread, you should use :
| Code: | User-agent: *
Disallow: /forum/viewtopic.php
Disallow: /forum/viewforum.php
Disallow: /forum/index.php?
Disallow: /forum/posting.php
Disallow: /forum/groupcp.php
Disallow: /forum/search.php
Disallow: /forum/login.php
Disallow: /forum/privmsg.php
Disallow: /forum/post
Disallow: /forum/member
Disallow: /forum/profile.php
Disallow: /forum/memberlist.php
Disallow: /forum/faq.php |
But since many "vanilla" url where already indexed, you should just use :
| Code: | User-agent: *
Disallow: /forum/posting.php
Disallow: /forum/groupcp.php
Disallow: /forum/search.php
Disallow: /forum/login.php
Disallow: /forum/privmsg.php
Disallow: /forum/post
Disallow: /forum/member
Disallow: /forum/profile.php
Disallow: /forum/memberlist.php
Disallow: /forum/faq.php |
In order to let the zero duplicate do its job on the regular viewforum.php, viewtopic.php and index.php URLs.
Then, after couple month, when it will be for sure that search engines acknowledged the updates on the urls, you'll be able to put all the disallows in it, just to make it easier for all bots.
Your robots.txt, as always, should be installed at the domain's root level, eg above the forum/ folder in your case.
Migrating using HTTP 301 redirect does works nicely, it's a fact
++ |
Cool. Cool. Thanks for your detailed help. I love the way you explain to everyone here. I did what you said and now i will install advanced-zero-dupeV0-2-2 MOD and other MODs which you mentioned above.
Thanks a bunch Sir. You are great.  |
|
|
| Back to top |
|
 |
funwadi PR0

Joined: 06 May 2007 Posts: 53 Location: UAE
|
Posted: Sun May 06, 2007 2:17 pm Post subject: Re: adv mod_rewrite V0-2-4 (404 Not Found) |
|
|
| As you said i installed zero duplicate (advanced version) on my forum www.funwadi.com/forum but how can i know it is working properly and it's installed correctly to my forum ? Any idea Sir ? |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15242
|
|
| Back to top |
|
 |
funwadi PR0

Joined: 06 May 2007 Posts: 53 Location: UAE
|
Posted: Mon May 07, 2007 1:05 pm Post subject: Re: adv mod_rewrite V0-2-4 (404 Not Found) |
|
|
Ohhh, I thought to make it private will make the users to register it first and than see the content but i never realize that the bots are also like users and they won't be able to see the content at all. I have just made all public to view and read. Can you please look once again www.funwadi.com/forum and verify that I have done right or not? I hope now search engine will index more pages yeah and have more chances to get good PR yeah ? |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15242
|
Posted: Mon May 07, 2007 1:36 pm Post subject: Re: adv mod_rewrite V0-2-4 (404 Not Found) |
|
|
It's working great it seems, I only saw a weird thing : -http://www.funwadi.com/forum/introduce-yourself-here-greetings-congrats-amp-sorrows-f30.html
There should not be "amp" in this one.
The reg-ex is filtering those on all my servers, so I guess this deals with the windows-1252 char-set you are using.
Try adding :
| Code: | | $url = str_replace('amp','-',$url); |
after :
| Code: | | $url = preg_replace('`&(amp;)?#?[a-z0-9]+;`i','-',$url); |
In phpbb_seo/phpbb_seo_class.php
And yes, you will see the number of indexed pages increase, it's already 10700 pages, but since you opened many forums ...
And yes with PageRank, mod rewritten url do help out a lot to build PageRank.
++ |
_________________ 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 |
|
 |
funwadi PR0

Joined: 06 May 2007 Posts: 53 Location: UAE
|
Posted: Mon May 07, 2007 1:49 pm Post subject: Re: adv mod_rewrite V0-2-4 (404 Not Found) |
|
|
| dcz wrote: | It's working great it seems, I only saw a weird thing : -http://www.funwadi.com/forum/introduce-yourself-here-greetings-congrats-amp-sorrows-f30.html
There should not be "amp" in this one.
The reg-ex is filtering those on all my servers, so I guess this deals with the windows-1252 char-set you are using.
Try adding :
| Code: | | $url = str_replace('amp','-',$url); |
after :
| Code: | | $url = preg_replace('`&(amp;)?#?[a-z0-9]+;`i','-',$url); |
In phpbb_seo/phpbb_seo_class.php
And yes, you will see the number of indexed pages increase, it's already 10700 pages, but since you opened many forums ...
And yes with PageRank, mod rewritten url do help out a lot to build PageRank.
++ |
Ohh, why there should not be any amp? This amp is created because it's & written. By the way, I added the code and it looks like this
| Code: | function format_url( $url, $type = 'topic' ) {
$url = preg_replace("`\[.*\]`U","",$url);
$url = preg_replace('`&(amp;)?#?[a-z0-9]+;`i','-',$url);
$url = str_replace('amp','-',$url);
$url= htmlentities($url, ENT_COMPAT, $this->encoding);
$url= preg_replace( "`&([a-z])(acute|uml|circ|grave|ring|cedil|slash|tilde|caron|lig);`i","\\1", $url );
$url = preg_replace( array("`[^a-z0-9]`i","`[-]+`") , "-", $url);
$url = ( $url == "" ) ? $type : strtolower(trim($url, '-'));
return $url; |
but still it's the same! Now what to do?
Yeah, google is indexing very fast Sir. All credits to you. Now i just checked and it's 11,000!
By the way, in Yahoo and MSN the pages are indexed less than 50
Any way to make Yahoo and MSN bots to index pages like Google does for my forum? |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15242
|
|
| Back to top |
|
 |
funwadi PR0

Joined: 06 May 2007 Posts: 53 Location: UAE
|
Posted: Mon May 07, 2007 7:23 pm Post subject: Re: adv mod_rewrite V0-2-4 (404 Not Found) |
|
|
Great. You are genius. It worked. Thanks a lot Sir.
By the way, I don't have any idea how to index more pages in Yahoo and MSN. Can you just give me rough idea Sir. Please... |
|
|
| Back to top |
|
 |
|
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|