v htaccess mám toto
Kód: Vybrat vše
# 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$ phpBB3/index.php [QSA,L,NC]
# FORUM
RewriteRule ^/[a-z0-9_-]*-f([0-9]+)/?(stranka([0-9]+)/)?$ phpBB3/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]+)/?(stranka([0-9]+)/)?$ phpBB3/viewtopic.php?f=$1&t=$2&start=$4 [QSA,L,NC]
# GLOBAL ANNOUNCES WITH VIRTUAL FOLDER
RewriteRule ^/oznameni/[a-z0-9_-]*-t([0-9]+)/?(stranka([0-9]+)/)?$ phpBB3/viewtopic.php?t=$1&start=$3 [QSA,L,NC]
# TOPIC WITHOUT FORUM ID & DELIM
RewriteRule ^/([a-z0-9_-]*)/?[a-z0-9_-]*-t([0-9]+)/?(stranka([0-9]+)/)?$ phpBB3/viewtopic.php?forum_uri=$1&t=$2&start=$4 [QSA,L,NC]
# PROFILES THROUGH USERNAME
RewriteRule ^/clen/([^/]+)/?$ phpBB3/memberlist.php?mode=viewprofile&un=$1 [QSA,L,NC]
# USER MESSAGES THROUGH USERNAME
RewriteRule ^/clen/([^/]+)/(topics|posts)/?(stranka([0-9]+)/)?$ phpBB3/search.php?author=$1&sr=$2&start=$4 [QSA,L,NC]
# GROUPS ADVANCED
RewriteRule ^/[a-z0-9_-]*-g([0-9]+)/?(stranka([0-9]+)/)?$ phpBB3/memberlist.php?mode=group&g=$1&start=$3 [QSA,L,NC]
# POST
RewriteRule ^/prispevek([0-9]+)/$ phpBB3/viewtopic.php?p=$1 [QSA,L,NC]
# ACTIVE TOPICS
RewriteRule ^/aktivni-temata/?(stranka([0-9]+)/)?$ phpBB3/search.php?search_id=active_topics&start=$2&sr=topics [QSA,L,NC]
# UNANSWERED TOPICS
RewriteRule ^/nezodpovezene/?(stranka([0-9]+)/)?$ phpBB3/search.php?search_id=unanswered&start=$2&sr=topics [QSA,L,NC]
# NEW POSTS
RewriteRule ^/nove-prispevky/?(stranka([0-9]+)/)?$ phpBB3/search.php?search_id=newposts&start=$2&sr=topics [QSA,L,NC]
# THE TEAM
RewriteRule ^/admin-team/$ phpBB3/memberlist.php?mode=leaders [QSA,L,NC]
# HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES
# FORUM WITHOUT ID & DELIM
# THESE THREE LINES MUST BE LOCATED AT THE END OF YOUR HTACCESS TO WORK PROPERLY
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^/([a-z0-9_-]+)/?(stranka([0-9]+)/)?$ phpBB3/viewforum.php?forum_uri=$1&start=$3 [QSA,L,NC]
# END PHPBB PAGES
#####################################################
je to vygenerované přímo modem na to...jinak s mod rewrite nemám zkušenosti
jedná se o toto forum
díky všem za rady, pokud budete chtít dalśí info, tak dodám