how to generate .htaccess ?.. and where to load it ?

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

Moderator: Moderators

how to generate .htaccess ?.. and where to load it ?

Postby adikwok » Mon Dec 15, 2008 8:24 am

please.. help..

i tried to copy n paste .htaccess file that was in phpbb seo acp page .. to new .htaccess file..

and i upload it to the root..

but.. the result is internal server error..
i already delete all file in phpbb/cache folder except .htaccess file

still the result is internal server error 500

help me please..
adikwok
PR0
PR0
 
Posts: 95
Joined: Thu Nov 13, 2008 5:11 am

Advertisement

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

The first thing to do is to delete the .htaccess you've already uploaded to the root. Then you will be able to get back in your board. Then go to the ACP, click on the PHPBB SEO tab, then after you have set up the rewriting scheme that you want, click on .htaccess on the left to see what your .htaccess should look like. Copy that down into a new notepad document and save it as ".htaccess" and upload that file to the root of your server.

Hope this helps. :)
coyote
phpBB SEO Team
phpBB SEO Team
 
Posts: 257
Joined: Fri May 11, 2007 6:24 am

thank you again.. coyote..

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

thank you again for your humble heart that willing to help someone who is in trouble with .htaccess file like me..

i did your second guidance.. ( the one with .htaccess sample )

it really.. really works.. great :D

thanks n regards,

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

need help again please..

Postby adikwok » Tue Dec 16, 2008 1:45 am

dear coyote..

everything before is working fine..

i can go to my http://forumlowongan.com

and then i got redirected to http://forumlowongan.com/lowongankerja

then when i click forum.. i will go to
http://forumlowongan.com/lowongankerja/forum41.html

but when i click board index..after i read the forum

the result is 404 page not found for..
http://forumlowongan.com/lowongankerja/lowongan kerja.html

i remembered that i change index=>'' to index=>'lowongan kerja" in phpbb seo class.php before

so i tried to change it back to index=>'' in phpbb seo class.php

the result is when i go to http://forumlowongan.com

the address is changing http://forumlowongan.com/lowongankerja
cause been redirected..

but there is only blank page.. i can not see my forum..

would you please guide me again.. how to fix it.. coyote..?


thanks and regards..

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

Postby SeO » Wed Dec 17, 2008 10:01 am

Looks like working now, was most likely due to the white space in the url you where attempting to use : lowongan kerja.html

You should only use A to Z (no accents), 0 to 9 and "_" and "-" in urls : lowongan-kerja.html
should do it ;)
SeO
Admin
Admin
 
Posts: 6333
Joined: Wed Mar 15, 2006 9:41 pm

yes it is working

Postby adikwok » Wed Dec 17, 2008 10:37 pm

its working after i replace phpbb seo class file that i modified before..
into the premod phpbb seo class..

ffffiuuuhh.. lucky me..

i would like to change that index=>'' into index=>'lowongan-kerja.html'
wish me luck.. SeO
adikwok
PR0
PR0
 
Posts: 95
Joined: Thu Nov 13, 2008 5:11 am

Re: yes it is working

Postby SeO » Thu Dec 18, 2008 9:46 am

adikwok wrote:i would like to change that index=>'' into index=>'lowongan-kerja.html'
wish me luck.. SeO


Do it, you'll just have to re-generate a new .htaccess ;)
SeO
Admin
Admin
 
Posts: 6333
Joined: Wed Mar 15, 2006 9:41 pm

how to re-generate .htaccess ?

Postby adikwok » Thu Dec 18, 2008 10:55 am

i just made this changes.. could it be right ?

$this->seo_static = array( 'forum' => 'lowongan', 'topic' => 'lowongankerja', 'post' => 'post', 'user' => 'member', 'group' => 'group', 'index' => 'lowongan-kerja',

and what should i do.. after i change that seo_static ? to re-generate .htaccess ?

should i just click submit in phpbb seo .htaccess page ?



now.. i better focus on this step.. SeO..
please forgive me for asking too many question..

im so excited.. and wish for my website to be optimized by this seo technique.. now.. i must be focus.. one step at a time..
adikwok
PR0
PR0
 
Posts: 95
Joined: Thu Nov 13, 2008 5:11 am

cant re-generate .htaccess after i change seo_static

Postby adikwok » Thu Dec 18, 2008 11:49 am

the result is this :

return false; } } /** * is_utf8($string) * Borrowed from php.net : http://www.php.net/mb_detect_encoding (detectUTF8) */ function is_utf8($string) { // non-overlong 2-byte|excluding overlongs|straight 3-byte|excluding surrogates|planes 1-3|planes 4-15|plane 16 return preg_match('%(?:[\xC2-\xDF][\x80-\xBF]|\xE0[\xA0-\xBF][\x80-\xBF]|[\xE1-\xEC\xEE\xEF][\x80-\xBF]{2}|\xED[\x80-\x9F][\x80-\xBF] |\xF0[\x90-\xBF][\x80-\xBF]{2}|[\xF1-\xF3][\x80-\xBF]{3}|\xF4[\x80-\x8F][\x80-\xBF]{2})+%xs', $string); } // --> Add on Functions <-- // --> Gen stats /** * Returns usable microtime * Borrowed from php.net */ function microtime_float() { return array_sum(explode(' ',microtime())); } } // End of the phpbb_seo class ?>

in every page of my forumlowongan.com

and i can not do anything in phpbb acp page

how to fix that ?
adikwok
PR0
PR0
 
Posts: 95
Joined: Thu Nov 13, 2008 5:11 am

Re: how to re-generate .htaccess ?

Postby coyote » Fri Dec 19, 2008 12:01 am

adikwok wrote:i just made this changes.. could it be right ?

$this->seo_static = array( 'forum' => 'lowongan', 'topic' => 'lowongankerja', 'post' => 'post', 'user' => 'member', 'group' => 'group', 'index' => 'lowongan-kerja',



Oh my, no. You should only change three things to rename your index, and don't change anything else.




OPEN:

phpbb-seo/phpbb-seo-class.php



FIND:

$this->seo_static = array( 'forum' => 'forum', 'topic' => 'topic', 'post' => 'post', 'user' => 'member', 'group' => 'group', 'index' => '', 'global_announce' => 'announces', 'leaders' => 'the-team', 'atopic' => 'active-topics', 'utopic' => 'unanswered', 'npost' => 'newposts', 'pagination' => 'page', 'gz_ext' => '.gz' );


REPLACE WITH:



$this->seo_static = array( 'forum' => 'forum', 'topic' => 'topic', 'post' => 'post', 'user' => 'member', 'group' => 'group', 'index' => 'lowongan-kerja', 'global_announce' => 'announces', 'leaders' => 'the-team', 'atopic' => 'active-topics', 'utopic' => 'unanswered', 'npost' => 'newposts', 'pagination' => 'page', 'gz_ext' => '.gz' );



FIND:



$this->seo_ext = array( 'forum' => '.html', 'topic' => '.html', 'post' => '.html', 'user' => '.html', 'group' => '.html', 'index' => '', 'global_announce' => '/', 'leaders' => '.html', 'atopic' => '.html', 'utopic' => '.html', 'npost' => '.html', 'pagination' => '.html', 'gz_ext' => '');


REPLACE WITH:



$this->seo_ext = array( 'forum' => '.html', 'topic' => '.html', 'post' => '.html', 'user' => '.html', 'group' => '.html', 'index' => '.html', 'global_announce' => '/', 'leaders' => '.html', 'atopic' => '.html', 'utopic' => '.html', 'npost' => '.html', 'pagination' => '.html', 'gz_ext' => '');






OPEN:


.htaccess

(this assumes you still have the same .htaccess file from the one I posted earlier)


FIND:


RewriteRule ^/lowongankerja/\.html$ /lowongankerja/index.php [QSA,L,NC]




REPLACE WITH:

RewriteRule ^/lowongankerja/lowongan-kerja\.html$ /lowongankerja/index.php [QSA,L,NC]


SAVE AND CLOSE ALL



Don't forget to clear your cache in the ACP. ;)
coyote
phpBB SEO Team
phpBB SEO Team
 
Posts: 257
Joined: Fri May 11, 2007 6:24 am

i will do it now..

Postby adikwok » Fri Dec 19, 2008 12:23 am

please wait a momment..

if you dont mind...

im changing it now.. need your guidance
adikwok
PR0
PR0
 
Posts: 95
Joined: Thu Nov 13, 2008 5:11 am

great.. it works..

Postby adikwok » Fri Dec 19, 2008 1:23 am

sorry for my late reply..
due to my poor internet connection..

yes.. coyote.. it works..

it change my board index to :
-http://www.forumlowongan.com/lowongankerja/lowongan-kerja.html

would you mind giving me more guidance on how to change these

-http://www.forumlowongan.com/lowongankerja/forum50.html
-http://www.forumlowongan.com/lowongankerja/topic88.html

into

-http://www.forumlowongan.com/lowongankerja/lowongan-50.html
-http://www.forumlowongan.com/lowongankerja/lowongankerja-88.html

can i do that.. using simple mod rewrite ?
adikwok
PR0
PR0
 
Posts: 95
Joined: Thu Nov 13, 2008 5:11 am

how to make forum style like yours? especially the header

Postby adikwok » Fri Dec 19, 2008 2:13 am

it is cool..

the header change picture.. everytime i click board index.. or i move into another topic or forum..

is it able to do that in my forum homepage ?

thanks and 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