Outrageous - where have my forums gone?

Discussions and support about the different URL Rewriting techniques for phpBB.

Moderator: Moderators

Outrageous - where have my forums gone?

Postby wilsonf1 » Wed May 14, 2008 11:12 pm

i installed phpbb3 tonight and then went straight in and did the seo plugin this site provides

upon activating the rewrite in the control panel i then tested my forum as it says, my forum url had indeed changed but went to 404 - i deleted the forum and started a new one from scratch and now no forums appear on my BB , it just says:

This board has no forums.

there is a forum called main the the control panel and i can see it in my database table - so where is it?

even when i disable rewrites nothing changes

can any one help as this is very fustrating....
Last edited by wilsonf1 on Mon Nov 24, 2008 9:59 pm, edited 1 time in total.
wilsonf1
 
Posts: 12
Joined: Wed May 14, 2008 11:08 pm

Advertisement

Postby wilsonf1 » Wed May 14, 2008 11:53 pm

ok i managed to get 2 test forums working and then reinstalled the plugin

i click enable rewriting and then save the htaccess file, when i look at the fourm i get


which gives a 404 - what do i manually have to do to enable this to work?

im not sure how to check: First make sure mod_rewrite is activated on your server.

im using fasthosts reseller hosting will that work??!
Last edited by wilsonf1 on Mon Nov 24, 2008 9:59 pm, edited 1 time in total.
wilsonf1
 
Posts: 12
Joined: Wed May 14, 2008 11:08 pm

Postby SeO » Thu May 15, 2008 8:45 am

When saved, the .htaccess ends up in the phpbb_seo/cache/ dir, where we have writing privileges.

You need to move it where the .htaccess generator tells you to (bold red) once done. Default would be above the f1-forum/ dir, in the domain's root, but you can as well generate one to go within the forum dir, playing with the "more option" option.
SeO
Admin
Admin
 
Posts: 6334
Joined: Wed Mar 15, 2006 9:41 pm

Postby wilsonf1 » Thu May 15, 2008 8:55 am

i tried it in my fourm dir and website root dit but no joy, does the below like right to you?

Code: Select all
# 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 - ADVANCED
#####################################################
# 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 ^f1-forum/forum\.html$ /f1-forum/index.php [QSA,L,NC]
# FORUM
RewriteRule ^f1-forum/[a-z0-9_-]*-f([0-9]+)(-([0-9]+))?\.html$ /f1-forum/viewforum.php?f=$1&start=$3 [QSA,L,NC]
# TOPIC WITH VIRTUAL FOLDER
RewriteRule ^f1-forum/[a-z0-9_-]*-f([0-9]+)/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /f1-forum/viewtopic.php?f=$1&t=$2&start=$4 [QSA,L,NC]
# GLOBAL ANNOUNCES WITH VIRTUAL FOLDER
RewriteRule ^f1-forum/announces/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /f1-forum/viewtopic.php?t=$1&start=$3 [QSA,L,NC]
# TOPIC WITHOUT FORUM ID & DELIM
RewriteRule ^f1-forum/([a-z0-9_-]*)/?[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /f1-forum/viewtopic.php?forum_uri=$1&t=$2&start=$4 [QSA,L,NC]
# PROFILES SIMPLE
RewriteRule ^f1-forum/member([0-9]+)\.html$ /f1-forum/memberlist.php?mode=viewprofile&u=$1 [QSA,L,NC]
# USER MESSAGES SIMPLE
RewriteRule ^f1-forum/member([0-9]+)-(topics|posts)(-([0-9]+))?\.html$ /f1-forum/search.php?author_id=$1&sr=$2&start=$4 [QSA,L,NC]
# GROUPS SIMPLE
RewriteRule ^f1-forum/group([0-9]+)(-([0-9]+))?\.html$ /f1-forum/memberlist.php?mode=group&g=$1&start=$3 [QSA,L,NC]
# POST
RewriteRule ^f1-forum/post([0-9]+)\.html$ /f1-forum/viewtopic.php?p=$1 [QSA,L,NC]
# ACTIVE TOPICS
RewriteRule ^f1-forum/active-topics(-([0-9]+))?\.html$ /f1-forum/search.php?search_id=active_topics&start=$2&sr=topics [QSA,L,NC]
# UNANSWERED TOPICS
RewriteRule ^f1-forum/unanswered(-([0-9]+))?\.html$ /f1-forum/search.php?search_id=unanswered&start=$2&sr=topics [QSA,L,NC]
# NEW POSTS
RewriteRule ^f1-forum/newposts(-([0-9]+))?\.html$ /f1-forum/search.php?search_id=newposts&start=$2&sr=topics [QSA,L,NC]
# THE TEAM
RewriteRule ^f1-forum/the-team\.html$ /f1-forum/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 ^f1-forum/([a-z0-9_-]+)(-([0-9]+))?\.html$ /f1-forum/viewforum.php?forum_uri=$1&start=$3 [QSA,L,NC]
# END PHPBB PAGES
#####################################################
wilsonf1
 
Posts: 12
Joined: Wed May 14, 2008 11:08 pm

Postby SeO » Thu May 15, 2008 9:35 am

This one is meant to be used in the domain's root.

If it does not work, it could be due to the slashes, you can try the several options while generating it, but you may want to make sure you can use mod_rewrite first.
SeO
Admin
Admin
 
Posts: 6334
Joined: Wed Mar 15, 2006 9:41 pm

Postby wilsonf1 » Thu May 15, 2008 12:09 pm

fasthosts say the standard reqrite rule is on for their linux servers so all good
wilsonf1
 
Posts: 12
Joined: Wed May 14, 2008 11:08 pm

Postby SeO » Thu May 15, 2008 12:46 pm

Then try to play with slashes.

Put the .htaccess you posted in your website's root, and try to delete all the slashes before f1-forum/ for example.

If mod_rewrite is on, it will work ;)
SeO
Admin
Admin
 
Posts: 6334
Joined: Wed Mar 15, 2006 9:41 pm

Postby wilsonf1 » Thu May 15, 2008 1:20 pm

i tried using the below, in the root and the f1-forum folder but still no joy?! i dont get what affects it, the urls is being rewritten but doesnt exist on click?

Code: Select all
# 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 - ADVANCED
#####################################################
# 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 ^f1-forum/forum\.html$ f1-forum/index.php [QSA,L,NC]
# FORUM
RewriteRule ^f1-forum/[a-z0-9_-]*-f([0-9]+)(-([0-9]+))?\.html$ f1-forum/viewforum.php?f=$1&start=$3 [QSA,L,NC]
# TOPIC WITH VIRTUAL FOLDER
RewriteRule ^f1-forum/[a-z0-9_-]*-f([0-9]+)/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ f1-forum/viewtopic.php?f=$1&t=$2&start=$4 [QSA,L,NC]
# GLOBAL ANNOUNCES WITH VIRTUAL FOLDER
RewriteRule ^f1-forum/announces/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ f1-forum/viewtopic.php?t=$1&start=$3 [QSA,L,NC]
# TOPIC WITHOUT FORUM ID & DELIM
RewriteRule ^f1-forum/([a-z0-9_-]*)/?[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ f1-forum/viewtopic.php?forum_uri=$1&t=$2&start=$4 [QSA,L,NC]
# PROFILES SIMPLE
RewriteRule ^f1-forum/member([0-9]+)\.html$ f1-forum/memberlist.php?mode=viewprofile&u=$1 [QSA,L,NC]
# USER MESSAGES SIMPLE
RewriteRule ^f1-forum/member([0-9]+)-(topics|posts)(-([0-9]+))?\.html$ f1-forum/search.php?author_id=$1&sr=$2&start=$4 [QSA,L,NC]
# GROUPS SIMPLE
RewriteRule ^f1-forum/group([0-9]+)(-([0-9]+))?\.html$ f1-forum/memberlist.php?mode=group&g=$1&start=$3 [QSA,L,NC]
# POST
RewriteRule ^f1-forum/post([0-9]+)\.html$ f1-forum/viewtopic.php?p=$1 [QSA,L,NC]
# ACTIVE TOPICS
RewriteRule ^f1-forum/active-topics(-([0-9]+))?\.html$ f1-forum/search.php?search_id=active_topics&start=$2&sr=topics [QSA,L,NC]
# UNANSWERED TOPICS
RewriteRule ^f1-forum/unanswered(-([0-9]+))?\.html$ f1-forum/search.php?search_id=unanswered&start=$2&sr=topics [QSA,L,NC]
# NEW POSTS
RewriteRule ^f1-forum/newposts(-([0-9]+))?\.html$ f1-forum/search.php?search_id=newposts&start=$2&sr=topics [QSA,L,NC]
# THE TEAM
RewriteRule ^f1-forum/the-team\.html$ f1-forum/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 ^f1-forum/([a-z0-9_-]+)(-([0-9]+))?\.html$ f1-forum/viewforum.php?forum_uri=$1&start=$3 [QSA,L,NC]
# END PHPBB PAGES
#####################################################
wilsonf1
 
Posts: 12
Joined: Wed May 14, 2008 11:08 pm

Postby wilsonf1 » Thu May 15, 2008 1:41 pm

sorry hold on, there may well be a rewrite problem with my host, i'll get back to you
wilsonf1
 
Posts: 12
Joined: Wed May 14, 2008 11:08 pm

Postby wilsonf1 » Mon May 19, 2008 7:43 pm

hi guys

my forum is defo on a linux server now, but when i have a ,htaccess file in my root i get a 500 error, my host says the following:


The .htaccess file will allow changes to the folllowing configurations:

* Mod_rewrite This allows you to manipulate URL's to make them more user and search engine friendly. More information regarding the use of this feature can be found in our article: Mod_rewrite on Linux web servers.

* Password Protection It is not possible to add password protection directly by creating a .htaccess file, however this feature can be created through your Fasthosts control panel.

* Custom error pages It is not possible to add custom error pages by creating a .htaccess file, however this feature can be created through your Fasthosts control panel.

* Frontpage Extensions If you are using Frontpage extensions to publish your website a .htaccess file will be created. This will be managed and maintained by Frontpage.

All other features of the .htaccess file have been disabled on our shared hosting servers.


is there something in the htaccess that isnt in their included rules???

this is annoying!!!

msn me if you can tonight f1jameswilson@hotmail.co.uk

thanks
wilsonf1
 
Posts: 12
Joined: Wed May 14, 2008 11:08 pm

Postby wilsonf1 » Mon May 19, 2008 10:10 pm

OK im nearly there:

http://forum.enterf1.com/

ive got the forums acting as folders, but cant the topic titles be folders too? do they have to be .html and do they have to have a number at the end? ideally not but let me know!!!
wilsonf1
 
Posts: 12
Joined: Wed May 14, 2008 11:08 pm

Postby SeO » Tue May 20, 2008 9:15 am

Great.

So, you can use "/" instead of ".html" as suffixes for topics (read the install, you can actually change all suffixes to what you want except ".php"), but you can't get rid of the topic ids.

You need to regnerate an .htaccess after you change the static settings.
SeO
Admin
Admin
 
Posts: 6334
Joined: Wed Mar 15, 2006 9:41 pm

Postby wilsonf1 » Wed May 21, 2008 1:44 pm

in fustration to finding out which line in the root htaccess file affetcs the topic extension i didnt replace all from .html and .asp and it worked lol so at least i know its in there some where

the last thing i need to do is style it up - copied and pasted the prosilver folder, changed the name to enterf1v1 in all the .cfg files in the imageset, theme and template folders then uploaded

in the control panel i made enterf1v1 my default style all round - so i expected to see a carbon copy of prosilver just renamed

but click the forum f1 discussion and it looses the styling:

http://forum.enterf1.com/

any ideas why - when u look in the source u can see where its point the style sheets at and they do exist?
wilsonf1
 
Posts: 12
Joined: Wed May 14, 2008 11:08 pm

Postby wilsonf1 » Wed May 21, 2008 7:36 pm

update:

using firebug to manipulate the source code, it seems putting ../style rather than the default ./style as the path to to style.php kicks in the css -

this is because im in a sub folder /f1-discussion

i noticed trying to login to the forum from that sub folder also doesnt work

so why has the style/template affected the paths of these files?
wilsonf1
 
Posts: 12
Joined: Wed May 14, 2008 11:08 pm

Postby dcz » Sat May 31, 2008 9:55 am

It's just that you need to implement the template code change for the mod rewrite to all you styles. Usually, custom styles are either based on prosilver or subsliver2, at least, the code change meant for one of the two provided should fit your custom style fr the most.

Post here in case you need help to find the exact pieces of code to change, the one in overall_header.html is the one that will fix your last issue.

About how to change suffixes, please refer to the install file from the release package, it's pretty simple.

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21398
Joined: Fri Apr 28, 2006 9:03 pm

Next

Return to phpBB mod Rewrite

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 10 guests