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  
 
   
Mixed Mod rewrite not working - 404 errors --> trouble

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB mod Rewrite
::  
Author Message
robb montgomery



Joined: 15 Jul 2006
Posts: 5

Mixed Mod rewrite not working - 404 errors --> troublePosted: Sun Jul 16, 2006 3:11 am    Post subject: Mixed Mod rewrite not working - 404 errors --> trouble

OK - I have done my share of mod installs over the years and am stumped as to why this one is not working.

Here's how it looks: If you hover on a topic title (Or 'next' or 'previous' topic link) or hover on a forum title it will display rewritten '.html' destination but a click on any of these will only you transport you to my 404 error page.


• I went back through Mixed Mod Install file and went line by line and file by file on my server to make sure all mod pieces were installed correctly.

• I have installed the 'www' prefix rewrite mod (But frankly I have tried both option one and option two to no perceptable effect - have option two in my htacces file - see below)

• I have installed the Cyber Alien guest sessions strip mod.

• I am at current rev - PHPBB 2.0.21

• Mod rewrite is on my server

• I have read the other thread on this topic and tried the suggestions listed there. (Too bad the poster did not tell us what he fixed to get to a happy state on his casino site . . . )


I have just restored the sessions and functions.php mods to factory fresh so that I have a working forum until I get some help here that will make this mod work. Looking forward to how to troubleshoot it.

Note:
I do use MX portal but only for a couple of pages and the primary mx module I use is the HTML one where I can place my own code to call lists of recent topics.


Below is the contents of my root .htaccess file


Code:
Options +FollowSymlinks -Indexes
RewriteEngine On
RewriteBase /

RewriteCond %{HTTP_HOST} !^www\.visualeditors\.com$ [NC]
RewriteRule ^(.*) http://www.visualeditors.com/$1 [QSA,L,R=301]

#########################################################
# PHPBB SEO REWRITE RULES            #
#########################################################
# AUTHOR : DCZ http://www.phpbb-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# FORUM PROTECTION RULE
RewriteRule forum/.+/([^/]+\.html)$ /forum/index.php [R=301,L]
# CATEGORIES
RewriteRule ^forum/.+-vc([0-9]+)\.html$ /forum/index.php?c=$1 [QSA,L]
# PAGINATED FORUM
RewriteRule ^forum/.+-vf([0-9]+)-([0-9]+)\.html$ /forum/viewforum.php?f=$1&start=$2 [QSA,L]
# FORUM
RewriteRule forum/.+-vf([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
#####################################################


<Files .htaccess>
order allow,deny
deny from all
</Files>

IndexIgnore */*

# Keep out email gatherers & other such unwelcome agents. Most of this list has
# been gleaned from http://www.javascriptkit.com/howto/htaccess13.shtml
RewriteCond %{HTTP_USER_AGENT} ^$ [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^BlackWidow [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Bot\ mailto:craftbot@yahoo.com [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^ChinaClaw [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Custo [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^DISCo [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Download\ Demon [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^eCatch [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^EirGrabber [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^EmailSiphon [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^EmailWolf [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Express\ WebPictures [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^ExtractorPro [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^EyeNetIE [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^FlashGet [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^GetRight [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^GetWeb! [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Go!Zilla [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Go-Ahead-Got-It [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^GrabNet [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Grafula [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^HMView [NC,OR]
RewriteCond %{HTTP_USER_AGENT} HTTrack [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Image\ Stripper [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Image\ Sucker [NC,OR]
RewriteCond %{HTTP_USER_AGENT} Indy\ Library [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^InterGET [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Internet\ Ninja [NC,OR]
RewriteCond %{HTTP_USER_AGENT} Java [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^JetCar [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^JOC\ Web\ Spider [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^larbin [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^LeechFTP [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^lwp:: [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^lwp- [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Mass\ Downloader [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^MIDown\ tool [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Mister\ PiX [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Navroad [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^NearSite [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^NetAnts [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^NetSpider [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Net\ Vampire [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^NetZIP [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Octopus [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Offline\ Explorer [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Offline\ Navigator [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^PageGrabber [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Papa\ Foto [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^pavuk [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^pcBrowser [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^RealDownload [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^ReGet [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^SiteSnagger [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^SmartDownload [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Schmozilla [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^SuperBot [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^SuperHTTP [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Surfbot [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^tAkeOut [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Teleport\ Pro [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^VoidEYE [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Web\ Image\ Collector [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Web\ Sucker [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^WebAuto [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^WebCopier [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^webcollage [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^WebFetch [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^WebGo\ IS [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^WebLeacher [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^WebReaper [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^WebSauger [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Website\ eXtractor [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Website\ Quester [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^WebStripper [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^WebWhacker [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^WebZIP [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Wget [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Widow [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^WWWOFFLE [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Xaldon\ WebSpider [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Zeuse [NC]
RewriteRule ^.*$ http://visualeditors.com/errors/home.html [L,R]
RewriteCond %{HTTP_USER_AGENT} ^-?$
RewriteRule ^.*$ http://visualeditors.com/errors/home.html [L]

# Deny access by domain address to sites who have broken the robot rules
RewriteCond %{REMOTE_HOST} adm-muenchen\.de [NC,OR]
RewriteCond %{REMOTE_HOST} cyveillance\.com [NC,OR]
RewriteCond %{REMOTE_HOST} \.optonline\.net [NC,OR]
RewriteCond %{REMOTE_HOST} pea016-29980-net-adsl-01\.altohiway\.com [NC,OR]
RewriteCond %{REMOTE_HOST} smartservercontrol\.com [NC,OR]
RewriteCond %{REMOTE_HOST} proxad\.net [NC]



Last edited by robb montgomery on Sun Jul 16, 2006 4:15 pm; edited 1 time in total
Back to top
robb montgomery



Joined: 15 Jul 2006
Posts: 5

Mixed Mod rewrite not working - 404 errors --> troublePosted: Sun Jul 16, 2006 3:45 am    Post subject: Re: Mixed Mod rewrite not working - 404 errors --> trouble

A followup: I did notice what may be some typos in the phpBB-SEO-Mixed-mod-Rewrite_V_0.0.2.txt

Some were benign - like 'sud folder' instead of 'subfolder' in the htaccess instructions or listing includes/function.php instead of the actual filename 'includes/functions.php'

This is probably unrealted to my problem but I was aware of a potential bug when I saw this snippet in the 'search.php' modifications"

The FIND search string is repeated twice but I could only find one instance in my search.php file. So I did what the mod said but I wonder if the second insertion ($highlight_ok = ($highlight !=' . . .) is actually placed in the right location.


Code:
#
#-----[ FIND ]------------------------------------------
#

      for($i = 0; $i < count($searchset); $i++)
      {


#
#-----[ AFTER, ADD ]------------------------------------------
#

         // phpBB-SEO.com SEO TOOLKIT BEGIN
         $seo_forum_name = $searchset[$i]['forum_name'];
         // phpBB-SEO.com SEO TOOLKIT END

#
#-----[ FIND ]------------------------------------------
#

      for($i = 0; $i < count($searchset); $i++)
      {

#
#-----[ BEFORE, ADD ]------------------------------------------
# Here You can also choose not to output any highlight, which is better as far as SEO, but a bit less user-friendly.
# To do so just delete the $highlight_ok in the next replace and do not apply this one.

      // www.phpBB-SEO.com SEO TOOLKIT BEGIN
      $highlight_ok = ($highlight !='') ? "&amp;highlight=$highlight" : '';
      // www.phpBB-SEO.com SEO TOOLKIT END


OK - hope that helps another person or the coder squash a bug - now back to my issue - please tell me what to look for in my install.

thanks
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14327

Mixed Mod rewrite not working - 404 errors --> troublePosted: Sun Jul 16, 2006 9:36 am    Post subject: Re: Mixed Mod rewrite not working - 404 errors --> trouble

And welcome Wink

Don't worry, if mod rewrite is on on your web server, then it will work.

Actually, the mods, all three of them works very nicely, it's just that mod rewrite and .htaccess are somehow tricky sometime, but it's most likely almost nothing.

It's just you need as advised to got for one step at a time.

So you say the URLs are outputted correctly, so if mod rewrite is on, there should be no problems.

So please first try with only the rewriteruels from this mod, then, we'll put back you security rewriterules (by the way, I can help you out securitizing you site as well, in the security forum).

So, please try this in your root's .htaccess first :

Code:
Options +FollowSymlinks -Indexes
RewriteEngine On
RewriteBase /

#########################################################
# PHPBB SEO REWRITE RULES            #
#########################################################
# AUTHOR : DCZ http://www.phpbb-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# FORUM PROTECTION RULE
RewriteRule forum/.+/([^/]+\.html)$ /forum/index.php [R=301,L]
# CATEGORIES
RewriteRule ^forum/.+-vc([0-9]+)\.html$ /forum/index.php?c=$1 [QSA,L]
# PAGINATED FORUM
RewriteRule ^forum/.+-vf([0-9]+)-([0-9]+)\.html$ /forum/viewforum.php?f=$1&start=$2 [QSA,L]
# FORUM
RewriteRule forum/.+-vf([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
#####################################################


Which should work right away, but you must know mod rewrite and server settings can make some rules working a bit different. Here I wrote those to be the more strict as possible, in order to save time processing Reg-Ex, in very very few cases, we need to open them a bit more, but I doubt it will be your case.

By the way I think the mixed mod rewrite is a good choice for your project.

To test live, you can even just upload the .htaccess and try to load -http://www.visualeditors.com/forum/topic5402.html for example, if it works, then this will mean the .htaccess is ok for topics (and thus static rules).

If you really want to be sure before you put the php code changes online, you can as well try -http://www.visualeditors.com/forum/general-discussion-vf18.html Wink

Then, if thos are redirected properly, then, you can put back your code changes online again and they'll work Very Happy

Then, for the typo, I did not understand, sub forum and subforum, but where ? Of course I'll be happy to correct whatever mistake, even spelling, you'll report Wink

And yes the search string is repeated twice, but once is followed by an after add, and then a before add, so, it's two instructions for real.

I'm sure you'll make it.

Then, the best when it works would be to maybe ask for help to merge you two .htaccess (the one you previously had and the new one from this mod) in the mod rewrite forum, or as said in the security forum if you wish to audit your security rules.
And of course we'll then be able to take care about the www prefixe duplicate.

Here, the simple RewriteEngine on being repeated can explain your problems.

++

_________________
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
robb montgomery



Joined: 15 Jul 2006
Posts: 5

Mixed Mod rewrite not working - 404 errors --> troublePosted: Sun Jul 16, 2006 4:07 pm    Post subject: Re: Mixed Mod rewrite not working - 404 errors --> trouble

Merci for the swift reply and thoughtful help - but it still does not work.

    I replaced my htaccess files with just the code you suggested.
    I went back through and verified that all the mods are inplace.
    I verified them again.


Still not working. I get the same 404 errors

Using the test files you suggested:
--> http://visualeditors.com/forum/topic5443.html
--> http://www.visualeditors.com/forum/topic5402.html

What should I look for next?


FYI, for the search.php code snippet I understand your directions are to place a BEFORE and AFTER this instruction:
Code:
         for($i = 0; $i < count($searchset); $i++)
         {




so that it results in THIS:
Code:
   // www.phpBB-SEO.com SEO TOOLKIT BEGIN
         $highlight_ok = ($highlight !='') ? "&amp;highlight=$highlight" : '';
   // www.phpBB-SEO.com SEO TOOLKIT END
   
         for($i = 0; $i < count($searchset); $i++)
         {
         
   // phpBB-SEO.com SEO TOOLKIT BEGIN
         $seo_forum_name = $searchset[$i]['forum_name'];
   // phpBB-SEO.com SEO TOOLKIT END


Also, in the instructions there is this small typo:
Code:
# phpBB is installed in a sud Folder :


subfolder not sud folder.
And this could also be improved if it said something like:
If your phpBB is installed in a subfolder then use the following htaccess code. Note: replace 'phpBB' with the name of the subfolder that contains your phpBB forum

Just a suggestion.

Cool

So - any ideas?

P.S. - I do know mod rewrite is ON - I use .htaccess files in other directories on the site. Mainly in the Wordpress blogs to dispplay a topic title permallink structure foro the archives.
But I also use it here:

http://www.visualeditors.com/forum/archive

robb
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14327

Mixed Mod rewrite not working - 404 errors --> troublePosted: Sun Jul 16, 2006 4:28 pm    Post subject: Re: Mixed Mod rewrite not working - 404 errors --> trouble

So it's correct for the search.php changes. And thanks for the suggestion Very Happy

All right, then do you have an .htaccess in the forum/folder ?

And is there anything else in you root's .htaccess ?

Because, in our case, the links are being redirected to what seems an error document, so there must be other setting somewhere interfering with the one we want to implement.

Is it dedicated hosting ? Are any other domains installed in the same folder ?

And try to get rid or the / before the second "forum/" of every rewriterules, just in case.

Then, as the code php side is working, I suggest you keep the original files online until we get the test link to work, so that your users can still access the board.

As well some local testing can be wise while setting up several mod rewrites together.

In all cases, we'll do it Wink

++

_________________
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
robb montgomery



Joined: 15 Jul 2006
Posts: 5

Mixed Mod rewrite not working - 404 errors --> troublePosted: Sun Jul 16, 2006 7:48 pm    Post subject: Re: Mixed Mod rewrite not working - 404 errors --> trouble

Yep that did it! I removed .this htacces file that was in my 'forum' folder.

Code:
RewriteEngine on
RewriteRule ^sitemap.xml$ sitemap.php [L]
RewriteRule ^forum-([0-9]+).xml$ sitemap.php?fid=$1 [L]


It was there to rename a php file for a Google sitemap generator.

I can probably find a better sitemap generator.

Now - I thought that the forum topics would be renamed to use their topic title in the url instead of just a numeral like "http://visualeditors.com/forum/topic5434.html"

My forum 'Archive' htaccess file properly renames topics using their name.
That .htaccess file looks like this.
Code:
RewriteEngine On
RewriteRule ^.+\.html$ index.php [L]
RewriteRule ^.+\.htm*$ index.php [L]
RewriteRule ^member-.+\.html*$ index.php [L]
RewriteRule ^members.+$ index.php [L]
RewriteRule ^(.+)/$ index.php [L]
RewriteRule ^forums.* index.php
RewriteRule ^forum([0-9]*).* viewforum.php?f=$1&mark=topic
RewriteRule ^viewforum([0-9]*)-([0-9]*)-([0-9]*).* viewforum.php?f=$1&topicdays=$2&start=$3
RewriteRule ^forum([0-9]*).* viewforum.php?f=$1
RewriteRule ^ptopic([0-9]*).* viewtopic.php?t=$1&view=previous
RewriteRule ^ntopic([0-9]*).* viewtopic.php?t=$1&view=next
RewriteRule ^ftopic([0-9]*)-([0-9]*)-([a-zA-Z]*)-([0-9]*).* viewtopic.php?t=$1&postdays=$2&postorder=$3&start=$4
RewriteRule ^ftopic([0-9]*)-([0-9]*).* viewtopic.php?t=$1&start=$2
RewriteRule ^ftopic([0-9]*).* viewtopic.php?t=$1
RewriteRule ^ftopic([0-9]*).html viewtopic.php?t=$1&start=$2&postdays=$3&postorder=$4&highlight=$5
RewriteRule ^sutra([0-9]*).* viewtopic.php?p=$1


What I noticed is that
Code:
-([a-zA-Z]*)
segment that you don't have.

This is, of course, from the html archiver script - http://www.ScriptWiz.com/phpbb-html-archiver.html

It generates THIS page.
http://www.visualeditors.com/forum/archive

With a typical topic rewrite looking lke this:
http://www.visualeditors.com/forum/archive/portfolio-critique-request-5115.htm


I really like your SEO solution but think it would be best to have topic titles searchable to be working at full potential. Maybe I missed something else on the install?






Also what should i do now for security, sitemaps and my MX install?
Maybe I should upgrade mx-portal, thsn go for MX sitemap mod?

I have also been able to reinstall a couple of my protections back into my root .htaccess. Are these any good?

My current root .htaccess file looks like this:
Code:

Options +FollowSymlinks -Indexes
RewriteEngine On
RewriteBase /

RewriteCond %{HTTP_HOST} ^visualeditors\.com$ [NC]
RewriteRule ^(.*) http://www.visualeditors.com/$1 [QSA,L,R=301]

#########################################################
# PHPBB SEO REWRITE RULES            #
#########################################################
# AUTHOR : DCZ http://www.phpbb-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# FORUM PROTECTION RULE
RewriteRule forum/.+/([^/]+\.html)$ /forum/index.php [R=301,L]
# CATEGORIES
RewriteRule ^forum/.+-vc([0-9]+)\.html$ /forum/index.php?c=$1 [QSA,L]
# PAGINATED FORUM
RewriteRule ^forum/.+-vf([0-9]+)-([0-9]+)\.html$ /forum/viewforum.php?f=$1&start=$2 [QSA,L]
# FORUM
RewriteRule forum/.+-vf([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
#####################################################


<Files .htaccess>
order allow,deny
deny from all
</Files>

IndexIgnore */*



robb
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14327

Mixed Mod rewrite not working - 404 errors --> troublePosted: Sun Jul 16, 2006 8:32 pm    Post subject: Re: Mixed Mod rewrite not working - 404 errors --> trouble

All right so it's working.

Great.

Then, the mixed mod rewrite does not inject topic titles on purpose, it's the advanced one to do so.

If you wish to go for it, it's as easy as the mixed one to install.

Then, ask for help if you need to put all you rewriterules together in the same .htacces in the mod rewrite forum.

And for the google sitemap generator, please take a look to mx Google sitemaps Wink
mx Sitemaps is a great regular site map solution as well.
And both are ready for mod rewrite Wink

++

[EDIT] By the way the archive mod is not that good as it's providing duplicates, have to think about it.

_________________
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
robb montgomery



Joined: 15 Jul 2006
Posts: 5

Mixed Mod rewrite not working - 404 errors --> troublePosted: Mon Jul 17, 2006 3:20 pm    Post subject: Re: Mixed Mod rewrite not working - 404 errors --> trouble

After upgrading to the advanced rewrite mod I now get a fatal' Internal server error" when I invoke the .htaccess.


1) Advanced SEOmod .htaccess is conflicting with something - but what?.

Code:
Options +FollowSymlinks
RewriteEngine On
RewriteBase /


RewriteCond %{HTTP_HOST} ^visualeditors\.com$ [NC]
RewriteRule ^(.*) http://www.visualeditors.com/$1 [QSA,L,R=301]


#########################################################
# PHPBB SEO REWRITE RULES            #
#########################################################
# AUTHOR : DCZ http://www.phpbb-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# FORUM PROTECTION RULE
RewriteRule ^forum/.+/([^/]+\.html)$ /forum/index.php [R=301,L]
# CATEGORIES
RewriteRule ^forum/.+-vc([0-9]+)\.html$ /forum/index.php?c=$1 [QSA,L]
# PAGINATED FORUM
RewriteRule ^forum/.+-vf([0-9]+)-([0-9]+)\.html$ /forum/viewforum.php?f=$1&start=$2 [QSA,L]
# FORUM
RewriteRule ^forum/.+-vf([0-9]+)\.html$ /forum/viewforum.php?f=$1 [QSA,L]
# PAGINATED TOPIC
RewriteRule ^forum/.+-vt([0-9]+)-([0-9]+)\.html$ /forum/viewtopic.php?t=$1&start=$2 [QSA,L]
# TOPIC
RewriteRule ^forum/.+-vt([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
#####################################################




I have double checked the instructions for the advanced mod and verified (twice!) that they are installed correctly.

Ideas?
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14327

Mixed Mod rewrite not working - 404 errors --> troublePosted: Mon Jul 17, 2006 4:51 pm    Post subject: Re: Mixed Mod rewrite not working - 404 errors --> trouble

Please use the support thread when applying, which here is the case Wink.

There should be no problem though with those, since the mixed mod rewrite uses the same syntax and was working.

Actually they are exactly the same until :
Code:
# PAGINATED TOPIC


Try without the www prefix rewriterule at first to see.

Make sure as well you .htaccess was uploaded correctly in the root folder.

And please use the release thread, you'll find others people findings Wink

++

_________________
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
ZBryan2



Joined: 09 Aug 2006
Posts: 1

Mixed Mod rewrite not working - 404 errors --> troublePosted: Wed Aug 09, 2006 11:52 pm    Post subject: thanks, had the same problem

Thank You,

The sample .htaccess code you provided solved my 404 errors. The only thing I changed to get it to work was:

Code:
Options +FollowSymlinks -Indexes


instead of:

Code:
Options +FollowSymlinks


as in the directions.

Not sure if this is a change that should be added into the installation or if its an isolated problem, but no more 404
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14327

Mixed Mod rewrite not working - 404 errors --> troublePosted: Wed Aug 09, 2006 11:59 pm    Post subject: Re: Mixed Mod rewrite not working - 404 errors --> trouble

Welcome Very Happy

The -Indexes option will just tell Apache not to list folder files unless specified in links or by the directoryIndex command.

I am not sure what this particular option could change in your particular settings as far as having the Rewriterules working. Do you have other .htaccess with rewriterules in them in your site ?

++

_________________
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
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB mod Rewrite
Page 1 of 1

Navigation Similar Topics

Jump to: