| :: |
| Author |
Message |
aka
Joined: 21 Jul 2008 Posts: 12 Location: Malaysia
|
Posted: Mon Jul 21, 2008 3:41 pm Post subject: Need help in PHPBB SEO REWRITE, is almost done.. |
|
|
Hi there.
I would need some help.
Below is my .htaccess file. I think everything is fine but still cannot redirect the url to html url.
I upload this .htaccess file in my forum folder directory
which it locate same with index.php, viewtopic.php
I have tried to upload the .htaccess both manually and automatically. But it seems like not working.
Remarks :
1. My server is no problem for mod_rewrite.
2. The rewrite url (html) is functionable because it can show the page I wanna view when I type in the rewrite url (html)
3. But it can't automatically .php ---> rewritable url when I browse my forum.
Please help. Thanks.
-------------------------------------------------------------------------------------
# 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 ^forum\.html$ /myforum/index.php [QSA,L,NC]
# FORUM
RewriteRule ^[a-z0-9_-]*-f([0-9]+)(-([0-9]+))?\.html$ /myforum/viewforum.php?f=$1&start=$3 [QSA,L,NC]
# TOPIC WITH VIRTUAL FOLDER
RewriteRule ^[a-z0-9_-]*-f([0-9]+)/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /myforum/viewtopic.php?f=$1&t=$2&start=$4 [QSA,L,NC]
# GLOBAL ANNOUNCES WITH VIRTUAL FOLDER
RewriteRule ^announces/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /myforum/viewtopic.php?t=$1&start=$3 [QSA,L,NC]
# TOPIC WITHOUT FORUM ID & DELIM
RewriteRule ^([a-z0-9_-]*)/?[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /myforum/viewtopic.php?forum_uri=$1&t=$2&start=$4 [QSA,L,NC]
# PROFILES SIMPLE
RewriteRule ^member([0-9]+)/$ /myforum/memberlist.php?mode=viewprofile&u=$1 [QSA,L,NC]
# USER MESSAGES SIMPLE
RewriteRule ^member([0-9]+)/(topics|posts)/?(page([0-9]+)\.html)?$ /myforum/search.php?author_id=$1&sr=$2&start=$4 [QSA,L,NC]
# GROUPS SIMPLE
RewriteRule ^group([0-9]+)(-([0-9]+))?\.html$ /myforum/memberlist.php?mode=group&g=$1&start=$3 [QSA,L,NC]
# POST
RewriteRule ^post([0-9]+)\.html$ /myforum/viewtopic.php?p=$1 [QSA,L,NC]
# ACTIVE TOPICS
RewriteRule ^active-topics(-([0-9]+))?\.html$ /myforum/search.php?search_id=active_topics&start=$2&sr=topics [QSA,L,NC]
# UNANSWERED TOPICS
RewriteRule ^unanswered(-([0-9]+))?\.html$ /myforum/search.php?search_id=unanswered&start=$2&sr=topics [QSA,L,NC]
# NEW POSTS
RewriteRule ^newposts(-([0-9]+))?\.html$ /myforum/search.php?search_id=newposts&start=$2&sr=topics [QSA,L,NC]
# THE TEAM
RewriteRule ^the-team\.html$ /myforum/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 ^([a-z0-9_-]+)(-([0-9]+))?\.html$ /myforum/viewforum.php?forum_uri=$1&start=$3 [QSA,L,NC]
# END PHPBB PAGES
##################################################### |
|
|
| Back to top |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15414
|
|
| Back to top |
|
 |
aka
Joined: 21 Jul 2008 Posts: 12 Location: Malaysia
|
Posted: Mon Jul 21, 2008 3:44 pm Post subject: Re: Need help in PHPBB SEO REWRITE, is almost done.. |
|
|
By the way...
My website is http://apakataanda.com/myforum
You kindly assistant is very much appreciated. |
|
|
| Back to top |
|
 |
aka
Joined: 21 Jul 2008 Posts: 12 Location: Malaysia
|
Posted: Mon Jul 21, 2008 3:45 pm Post subject: Re: Need help in PHPBB SEO REWRITE, is almost done.. |
|
|
| I see. Thanks. I will try. Thanks a lot. Will come back to you. |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15414
|
|
| Back to top |
|
 |
aka
Joined: 21 Jul 2008 Posts: 12 Location: Malaysia
|
Posted: Mon Jul 21, 2008 4:09 pm Post subject: Re: Need help in PHPBB SEO REWRITE, is almost done.. |
|
|
I have do all the steps.
 |
|
|
| Back to top |
|
 |
aka
Joined: 21 Jul 2008 Posts: 12 Location: Malaysia
|
Posted: Mon Jul 21, 2008 4:17 pm Post subject: Re: Need help in PHPBB SEO REWRITE, is almost done.. |
|
|
I will try to redo it again.
I dont' see any activation button in my acp. I think my installation might got problem. I will check. Thanks. |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15414
|
Posted: Tue Jul 22, 2008 8:39 am Post subject: Re: Need help in PHPBB SEO REWRITE, is almost done.. |
|
|
So, if you see things like ACP_PHPBB_SEO_CLASS, it means that you did not perform the required changes in the language files, and then potentially to other files, please make sure about that.
Then, about the .htaccess generator, the save button will only save the generated .htaccess in the phpbb_seo/cache dir, you need to put it where it belong after you generate it.
About the url rewriting activation, it's the first option of the ACP_PHPBB_SEO_CLAS menu
++ |
_________________ 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 |
|
 |
aka
Joined: 21 Jul 2008 Posts: 12 Location: Malaysia
|
Posted: Tue Jul 22, 2008 3:23 pm Post subject: Re: Need help in PHPBB SEO REWRITE, is almost done.. |
|
|
Ok.
I think this time I install it correctly.
My mistake is I didn't upload the other sub-files I just install the core file into it.
Anyway... now all my page goes to error 404. Should be something to do with .htaccess this time.. which is more match to this post title..
Will try to figure out the problem and read more post for this problem... will come back to you if still face problem. Thanks a lot dcz! |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15414
|
|
| Back to top |
|
 |
aka
Joined: 21 Jul 2008 Posts: 12 Location: Malaysia
|
Posted: Tue Jul 22, 2008 3:52 pm Post subject: Re: Need help in PHPBB SEO REWRITE, is almost done.. |
|
|
Ok..
Now I fixed it. I guess it's because .htaccess problem in my forum directory.
It's because my forum is in the second level directory(after domain).
However, previously I redirect my domain name to the forum directory. It can't redirect now since I manually overwrite the existing .htaccess file(which is 301 redirect)
So I think I might need to amend some code in the .htacess.
Thanks.. Will come back to you soon. |
|
|
| Back to top |
|
 |
aka
Joined: 21 Jul 2008 Posts: 12 Location: Malaysia
|
Posted: Tue Jul 22, 2008 3:53 pm Post subject: Re: Need help in PHPBB SEO REWRITE, is almost done.. |
|
|
| ok. Will try on the ACP. Thanks. |
|
|
| Back to top |
|
 |
aka
Joined: 21 Jul 2008 Posts: 12 Location: Malaysia
|
Posted: Fri Jul 25, 2008 4:02 pm Post subject: Re: Need help in PHPBB SEO REWRITE, is almost done.. |
|
|
Finally I know why I can't make it functional properly. It's working now. Thanks phpbb-seo.com
The main reason is I didn't upload properly all the required file as instructed.
However, I still face some problem when I want to view the member profiles.
It open the page without styles theme in it.. wondering what is the problem. |
|
|
| Back to top |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 4551
|
|
| Back to top |
|
 |
aka
Joined: 21 Jul 2008 Posts: 12 Location: Malaysia
|
Posted: Fri Jul 25, 2008 5:21 pm Post subject: Re: Need help in PHPBB SEO REWRITE, is almost done.. |
|
|
Yupe. Refresh the theme. But I didn't do any Mod in my theme.. I will look into it..
Come back to you soon. |
|
|
| Back to top |
|
 |
|
|