.htaccess problem.. need help please.. anyone ?

phpBB2 SEO Simple mod Rewrite support forum.
This mods performs a fully static URL rewriting for phpBB.
Simple and efficient.

Moderator: Moderators

.htaccess problem.. need help please.. anyone ?

Postby adikwok » Mon Dec 15, 2008 12:34 pm

dear sirs..

anyone please help..



my domain is http://forumlowongan.com
i installed phpbb in subfolder /lowongankerja

when someone go to forumlowongan.com.. they will be redirected to
http://forumlowongan.com/lowongankerja

i upload this .htaccess file in the root folder.. in public_html/
but.. it return 500 internal error..

here is my .htaccess file.. which i copied from phpbb seo .htaccess page
-----------------------------------------------------------------------
Options +FollowSymlinks

# 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

# REMEBER YOU ONLY NEED TO STARD MOD REWRITE ONCE
RewriteEngine On
# REWRITE BASE
RewriteBase /lowongankerja/
# HERE IS A GOOD PLACE TO ADD THE WWW PREFIXE REDIRECTION

#####################################################
# PHPBB SEO REWRITE RULES - SIMPLE
#####################################################
# AUTHOR : dcz www.phpbb-seo.com
# STARTED : 01/2006
#################################
# FORUMS PAGES
###############
# FORUM INDEX
RewriteRule ^lowongan kerja\.html$ index.php [QSA,L,NC]
# FORUM
RewriteRule ^forum([0-9]+)(-([0-9]+))?\.html$ viewforum.php?f=$1&start=$3 [QSA,L,NC]
# TOPIC WITH VIRTUAL FOLDER
RewriteRule ^forum([0-9]+)/topic([0-9]+)(-([0-9]+))?\.html$ viewtopic.php?f=$1&t=$2&start=$4 [QSA,L,NC]
# GLOBAL ANNOUNCES WITH VIRTUAL FOLDER
RewriteRule ^announces/topic([0-9]+)(-([0-9]+))?\.html$ viewtopic.php?t=$1&start=$3 [QSA,L,NC]
# TOPIC WITHOUT FORUM ID & DELIM
RewriteRule ^[a-z0-9_-]*/?topic([0-9]+)(-([0-9]+))?\.html$ viewtopic.php?t=$1&start=$3 [QSA,L,NC]
# PROFILES THROUGH USERNAME
RewriteRule ^member/([^/]+)/?$ memberlist.php?mode=viewprofile&un=$1 [QSA,L,NC]
# USER MESSAGES THROUGH USERNAME
RewriteRule ^member/([^/]+)/(topics|posts)/?(page([0-9]+)\.html)?$ search.php?author=$1&sr=$2&start=$4 [QSA,L,NC]
# GROUPS ADVANCED
RewriteRule ^[a-z0-9_-]*-g([0-9]+)(-([0-9]+))?\.html$ memberlist.php?mode=group&g=$1&start=$3 [QSA,L,NC]
# POST
RewriteRule ^post([0-9]+)\.html$ viewtopic.php?p=$1 [QSA,L,NC]
# ACTIVE TOPICS
RewriteRule ^active-topics(-([0-9]+))?\.html$ search.php?search_id=active_topics&start=$2&sr=topics [QSA,L,NC]
# UNANSWERED TOPICS
RewriteRule ^unanswered(-([0-9]+))?\.html$ search.php?search_id=unanswered&start=$2&sr=topics [QSA,L,NC]
# NEW POSTS
RewriteRule ^newposts(-([0-9]+))?\.html$ search.php?search_id=newposts&start=$2&sr=topics [QSA,L,NC]
# THE TEAM
RewriteRule ^the-team\.html$ memberlist.php?mode=leaders [QSA,L,NC]
# HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES

# END PHPBB PAGES
#####################################################

how to do it right.. sirs..?

please help.. and thank you..


regards,

adi kwok
adikwok
PR0
PR0
 
Posts: 95
Joined: Thu Nov 13, 2008 5:11 am

Advertisement

Re: .htaccess problem.. need help please.. anyone ?

Postby coyote » Mon Dec 15, 2008 4:44 pm

Your .htaccess should look exactly like this:

(except when you copy and paste this into a new document it won't have red text--I did that for teaching purposes ;) )


-----------------------------------------------------------------------
Options +FollowSymlinks

# 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

# 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 - SIMPLE
#####################################################
# AUTHOR : dcz www.phpbb-seo.com
# STARTED : 01/2006
#################################
# FORUMS PAGES
###############
# FORUM INDEX
RewriteRule ^lowongankerja/\.html$ /lowongankerja/index.php [QSA,L,NC]
# FORUM
RewriteRule ^lowongankerja/forum([0-9]+)(-([0-9]+))?\.html$ /lowongankerja/viewforum.php?f=$1&start=$3 [QSA,L,NC]
# TOPIC WITH VIRTUAL FOLDER
RewriteRule ^lowongankerja/forum([0-9]+)/topic([0-9]+)(-([0-9]+))?\.html$ /lowongankerja/viewtopic.php?f=$1&t=$2&start=$4 [QSA,L,NC]
# GLOBAL ANNOUNCES WITH VIRTUAL FOLDER
RewriteRule ^lowongankerja/announces/topic([0-9]+)(-([0-9]+))?\.html$ /lowongankerja/viewtopic.php?t=$1&start=$3 [QSA,L,NC]
# TOPIC WITHOUT FORUM ID & DELIM
RewriteRule ^lowongankerja/[a-z0-9_-]*/?topic([0-9]+)(-([0-9]+))?\.html$ /lowongankerja/viewtopic.php?t=$1&start=$3 [QSA,L,NC]
# PROFILES THROUGH USERNAME
RewriteRule ^lowongankerja/member/([^/]+)/?$ /lowongankerja/memberlist.php?mode=viewprofile&un=$1 [QSA,L,NC]
# USER MESSAGES THROUGH USERNAME
RewriteRule ^lowongankerja/member/([^/]+)/(topics|posts)/?(page([0-9]+)\.html)?$ /lowongankerja/search.php?author=$1&sr=$2&start=$4 [QSA,L,NC]
# GROUPS ADVANCED
RewriteRule ^lowongankerja/[a-z0-9_-]*-g([0-9]+)(-([0-9]+))?\.html$ /lowongankerja/memberlist.php?mode=group&g=$1&start=$3 [QSA,L,NC]
# POST
RewriteRule ^lowongankerja/post([0-9]+)\.html$ /lowongankerja/viewtopic.php?p=$1 [QSA,L,NC]
# ACTIVE TOPICS
RewriteRule ^lowongankerja/active-topics(-([0-9]+))?\.html$ /lowongankerja/search.php?search_id=active_topics&start=$2&sr=topics [QSA,L,NC]
# UNANSWERED TOPICS
RewriteRule ^lowongankerja/unanswered(-([0-9]+))?\.html$ /lowongankerja/search.php?search_id=unanswered&start=$2&sr=topics [QSA,L,NC]
# NEW POSTS
RewriteRule ^lowongankerja/newposts(-([0-9]+))?\.html$ /lowongankerja/search.php?search_id=newposts&start=$2&sr=topics [QSA,L,NC]
# THE TEAM
RewriteRule ^lowongankerja/the-team\.html$ /lowongankerja/memberlist.php?mode=leaders [QSA,L,NC]
# HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES

# END PHPBB PAGES
coyote
phpBB SEO Team
phpBB SEO Team
 
Posts: 257
Joined: Fri May 11, 2007 6:24 am

wonderful.. it works..

Postby adikwok » Tue Dec 16, 2008 12:54 am

thanks a lot coyote..

for your guidance on how to fix this .htaccess problem

i really mean it.. i almost want to stop trying to use this simple mode rewrite..
because i dont understand.. and i dont have any great explanation before you did..

now.. i am gonna try to step little further..

how to change this topic53.html into the subject line ?

http://www.forumlowongan.com/lowongankerja/topic53.html

i really get exciting.. for your great guidance.. fuiitt..fiuwww.. :D

thank you n regards,

adi kwok
adikwok
PR0
PR0
 
Posts: 95
Joined: Thu Nov 13, 2008 5:11 am


Return to phpBB2 Simple mod rewrite

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 1 guest