Page 1 of 1
mod_rewrite problem
Posted: June 10th, 2004, 7:36 am
by Wallboy
Ok I just the Able2Know SEO mod for phpBB, and also did the phpBB static URL mod. Although now if i'm not logged in and i click on a forum it says the page cannot be found. I seen someone else was having this problem but resolved it. I tried but no luck. my forum is in mydomain.com/forum/phpBB2. Anyone have any ideas what could be wrong? Thanks.
Posted: June 10th, 2004, 11:51 am
by ccb056
you cannot use the mod_rewrite code as is, yopu need to modifiy it, telling it you have the forum in a directory
Posted: June 10th, 2004, 5:25 pm
by Wallboy
Ok I put my forum in mydomain.com/forums. I still get a 404 when i click one of the forums. Where exactly should the .htaccess file be uploaded to? And what do I have to change in it?
edit: ok I had it in my root folder of the subdomain and then i moved it to the forum folder and it seems to almost be working. When I click on a category now within the forum I dont' get a 404 anymore. Instead now I just get a "category does not exist" page. Do I have to modify anything else in the .htaccess file?
Posted: January 19th, 2005, 2:26 pm
by mortgage-pro-seo
Hello,
I just went through the same issue this morning. The .htaccess needs to be in the same folder where your index.php file is for the forum. Use the following code add it to your .htaccess
You can open the .htaccess with with wordpad. When you upload to your server make sure you use ascii transfer.
RewriteEngine On
RewriteRule ^forums.* index.php [L,NC]
RewriteRule ^post-([0-9]*).html&highlight=([a-zA-Z0-9]*) post-.html$1&highlight=$2 [L,NC]
RewriteRule ^post-([0-9]*).* post-.html$1 [L,NC]
RewriteRule ^view-poll([0-9]*)-([0-9]*)-([a-zA-Z]*).* about.html$1&postdays=$2&postorder=$3&vote=viewresult [L,NC]
RewriteRule ^about([0-9]*).html&highlight=([a-zA-Z0-9]*) about.html$1&highlight=$2 [L,NC]
RewriteRule ^about([0-9]*).html&view=newest about.html$1&view=newest [L,NC]
RewriteRule ^about([0-9]*)-([0-9]*)-([a-zA-Z]*)-([0-9]*).* about.html$1&postdays=$2&postorder=$3&start=$4 [L,NC]
RewriteRule ^about([0-9]*)-([0-9]*).* about.html$1&start=$2 [L,NC]
RewriteRule ^about([0-9]*).* about.html$1 [L,NC]
RewriteRule ^about([0-9]*).html about.html$1&start=$2&postdays=$3&postorder=$4&highlight=$5 [L,NC]
RewriteRule ^mark-forum([0-9]*).html* forum-.html$1&mark=topics [L,NC]
RewriteRule ^updates-topic([0-9]*).html* about.html$1&watch=topic [L,NC]
RewriteRule ^stop-updates-topic([0-9]*).html* about.html$1&unwatch=topic [L,NC]
RewriteRule ^forum-([0-9]*).html forum-.html$1 [L,NC]
RewriteRule ^forum-([0-9]*).* forum-.html$1 [L,NC]
RewriteRule ^topic-([0-9]*)-([0-9]*)-([0-9]*).* forum-.html$1&topicdays=$2&start=$3 [L,NC]
RewriteRule ^ptopic([0-9]*).* about.html$1&view=previous [L,NC]
RewriteRule ^ntopic([0-9]*).* about.html$1&view=next [L,NC]
Posted: March 14th, 2005, 7:29 pm
by found it
Wow thats the first post i read on the site.....damn friendly....
you can also upload it as a text file and then rename it to .htaccess