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  
 
   
"File does not exist" With New Drupal Install

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 SEO TooLKit  » phpBB SEO Premod
::  
Author Message
asmint3



Joined: 22 Jan 2008
Posts: 1

"File does not exist" With New Drupal InstallPosted: Wed Jan 23, 2008 12:17 am    Post subject: "File does not exist" With New Drupal Install

Hello,

I'm sure this is a simple fix but....

Installed the pre-mod and have selected the "mixed" rewrite mod. I'm sure I've updated .htaccess correctly, I can see the forum links are being created correctly when I hover over them but when I click the link I always end up at my front page (the fact I end at the front page is probably to do with Drupal). The forum is installed into a subdirectory called "forums".

My .htaccess looks like this:

Code:
# Lines That should already be in your .htacess
<Files "config.php">
Order Allow,Deny
Deny from All
</Files>
<Files "common.php">
Order Allow,Deny
Deny from All
</Files>

# You may need to un-comment the following line
# Options +FollowSymlinks
# REMEBER YOU ONLY NEED TO STARD MOD REWRITE ONCE
RewriteEngine On
# REWRITE BASE
RewriteBase /
# HERE IS A GOOD PLACE TO ADD THE WWW PREFIXE REDIRECTION

#####################################################
# PHPBB SEO REWRITE RULES - MIXED
#####################################################
# AUTHOR : dcz www.phpbb-seo.com
# STARTED : 01/2006
#################################
# FORUMS PAGES
###############
# FORUM INDEX REWRITERULE WOULD STAND HERE IF USED. 'forum' REQUIRES TO BE SET AS FORUM INDEX
# RewriteRule ^forums/forum\.html$ /forums/index.php [QSA,L,NC]
# FORUM
RewriteRule ^forums/[a-z0-9_-]*-f([0-9]+)/?(page([0-9]+)\.html)?$ /forums/viewforum.php?f=$1&start=$3 [QSA,L,NC]
# TOPIC WITH VIRTUAL FOLDER
RewriteRule ^forums/[a-z0-9_-]*-f([0-9]+)/topic([0-9]+)(-([0-9]+))?\.html$ /forums/viewtopic.php?f=$1&t=$2&start=$4 [QSA,L,NC]
# GLOBAL ANNOUNCES WITH VIRTUAL FOLDER
RewriteRule ^forums/announces/topic([0-9]+)(-([0-9]+))?\.html$ /forums/viewtopic.php?t=$1&start=$3 [QSA,L,NC]
# TOPIC WITHOUT FORUM ID & DELIM
RewriteRule ^forums/[a-z0-9_-]*/?topic([0-9]+)(-([0-9]+))?\.html$ /forums/viewtopic.php?t=$1&start=$3 [QSA,L,NC]
# PROFILES SIMPLE
RewriteRule ^forums/member([0-9]+)\.html$ /forums/memberlist.php?mode=viewprofile&u=$1 [QSA,L,NC]
# USER MESSAGES SIMPLE
RewriteRule ^forums/messages([0-9]+)(-([0-9]+))?\.html$ /forums/search.php?author_id=$1&sr=posts&start=$3 [QSA,L,NC]
# GROUPS SIMPLE
RewriteRule ^forums/group([0-9]+)(-([0-9]+))?\.html$ /forums/memberlist.php?mode=group&g=$1&start=$3 [QSA,L,NC]
# POST
RewriteRule ^forums/post([0-9]+)\.html$ /forums/viewtopic.php?p=$1 [QSA,L,NC]
# THE TEAM
RewriteRule ^forums/the-team\.html$ /forums/memberlist.php?mode=leaders [QSA,L,NC]
# HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES

# FORUM WITHOUT ID & DELIM
# THESE FOUR LINES MUST BE LOCATED AT THE END OF YOUR HTACCESS TO WORK PROPERLY
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^forums/[a-z0-9_-]+/?(page([0-9]+)\.html)?$ /forums/viewforum.php?start=$2 [QSA,L,NC]
# END PHPBB PAGES
#####################################################


When I check the server logs I get the following error:

Quote:
File does not exist: W:/www/forums/your-first-forum-f2, referer: http://localhost/forums/


Obviously this is on a local machine and not my live site. If I disable rewriting everything works perfectly.

I think I have two questions (a) is there something obviously wrong with my .htaccess, (b) could Drupal url rewriting interfere with the mod?

TIA,
Paul
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14279

"File does not exist" With New Drupal InstallPosted: Thu Jan 24, 2008 2:51 pm    Post subject: Re: "File does not exist" With New Drupal Install

So, drupal is installed in the www/ dir (localhost root) and phpBB in the www/forums/ dir.

Is the phpbb's .htaccess in the www/ dir at it should with the settings you used to generate it ?

In case there is an .htaccess for drupal, you can either merge them both, or, generate a new .htaccess for phpBB, but intended to be placed in the forums/ dir (hit the more option button when in the .htaccess generator).

if none of this is the issue, then, let's start with making sure mod_rewrite is activated on you 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
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 SEO TooLKit  » phpBB SEO Premod
Page 1 of 1

Navigation Similar Topics

Jump to: