| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
asmint3
Joined: 22 Jan 2008 Posts: 1
|
Posted: 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:
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

Joined: 28 Apr 2006 Posts: 14279
|
|
| Back to top |
|
 |
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |