phpbb seo. Dudas modificacion .htaccess
Publicado: 30 Mar 2009, 15:25
Haber tengo instalado Version : Advanced - 0.4.6, que viene de seri en el proyecto SDKA.
Me he puesto a configurarlo y he puesto estas cosas (fuente Fuente):
Hasta aqui bien, ahora:
Y mis dudas:
1. El archivo que tengo que modificar es el .htaccess que tengo en root?
2. En el caso que si sea ese archivo, en el mio pone:
Y en el nuevo pone/ el que me da pone):
Simplemente es sustiirlo y ay esta? O tengo que hacer alguna cosa mas?
ESpeor que me podais orientar un poco, gracias.
Me he puesto a configurarlo y he puesto estas cosas (fuente Fuente):
Spoiler
Activate URL rewriting: Si
Profiles and groups injection: Si
Virtual folder Profiles: Si
Profiles ID removing: Si
Common Search and User messages pages rewriting: Si
SID Removing: No
Highlights Removing: Si
Remove small words: No
Virtual Folder: Si
Virtual Root: No
Forum URL caching: Si
Forum ID Removing : Si
le damos a enviar
en la parte izquierda dice Forum URL Management
Le das ahí y modificas las url como quieras
Ahora siempre a la izquierda dice algo como .htaccess
En el menú te saldrá algo como :
Save the .htaccess:
If checked, an .htaccess files will be generated upon submit in the phpbb_seo/cache/ folder. It's ready to go with your last settings, bou will still have to move it in the right place.
Le das a
SI
Luego en la otra opción donde dice
More Options:
If the first suggested .htaccess does not work.
First make sure mod_rewrite is activated on your server.
Then, make sure you uploaded it in the right folder, and that another one is not perturbing.
If not enough, hit the "more option" button.
Le das a Si o No, esto depende de ti, si quieres o no mas opciones..
Para finalizar le das a enviar
Profiles and groups injection: Si
Virtual folder Profiles: Si
Profiles ID removing: Si
Common Search and User messages pages rewriting: Si
SID Removing: No
Highlights Removing: Si
Remove small words: No
Virtual Folder: Si
Virtual Root: No
Forum URL caching: Si
Forum ID Removing : Si
le damos a enviar
en la parte izquierda dice Forum URL Management
Le das ahí y modificas las url como quieras
Ahora siempre a la izquierda dice algo como .htaccess
En el menú te saldrá algo como :
Save the .htaccess:
If checked, an .htaccess files will be generated upon submit in the phpbb_seo/cache/ folder. It's ready to go with your last settings, bou will still have to move it in the right place.
Le das a
SI
Luego en la otra opción donde dice
More Options:
If the first suggested .htaccess does not work.
First make sure mod_rewrite is activated on your server.
Then, make sure you uploaded it in the right folder, and that another one is not perturbing.
If not enough, hit the "more option" button.
Le das a Si o No, esto depende de ti, si quieres o no mas opciones..
Para finalizar le das a enviar
Spoiler
hí te saldrá el Nuevo .htacces
Lo copias y lo guardas y lo subes en /public_html/ (www)
Sino sabes guardarlo o tienes problemas para visualizarlo, Copia este que tiene las mismas configuraciones
Lo copias y lo guardas y lo subes en /public_html/ (www)
Sino sabes guardarlo o tienes problemas para visualizarlo, Copia este que tiene las mismas configuraciones
1. El archivo que tengo que modificar es el .htaccess que tengo en root?
2. En el caso que si sea ese archivo, en el mio pone:
Spoiler
<Files "config.php">
Order Allow,Deny
Deny from All
</Files>
<Files "common.php">
Order Allow,Deny
Deny from All
</Files>
RewriteEngine on
Rewriterule ^blog/(.+)/(.+).html$ /blog/view/blog.php?page=$1&mode=$2
Rewriterule ^blog/(.+).html$ /blog/blog.php?page=$1
Rewriterule ^blog/(.+)/$ /blog/view/blog.php?page=$1
Rewriterule ^blog/$ /blog/blog.php
Order Allow,Deny
Deny from All
</Files>
<Files "common.php">
Order Allow,Deny
Deny from All
</Files>
RewriteEngine on
Rewriterule ^blog/(.+)/(.+).html$ /blog/view/blog.php?page=$1&mode=$2
Rewriterule ^blog/(.+).html$ /blog/blog.php?page=$1
Rewriterule ^blog/(.+)/$ /blog/view/blog.php?page=$1
Rewriterule ^blog/$ /blog/blog.php
Spoiler
# 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 lines
# Options +FollowSymlinks
# To make sure that rewritten dir or file (/|.html) will not load dir.php in case it exist
# Options -MultiViews
# 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 http://www.phpbb-seo.com" onclick="window.open(this.href);return false;
# STARTED : 01/2006
#################################
# FORUMS PAGES
###############
# FORUM INDEX
RewriteRule ^forum\.html$ /index.php [QSA,L,NC]
# FORUM
RewriteRule ^[a-z0-9_-]*-f([0-9]+)/?(page([0-9]+)\.html)?$ /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$ /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$ /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$ /viewtopic.php?forum_uri=$1&t=$2&start=$4 [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
# 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_-]+)/?(page([0-9]+)\.html)?$ /viewforum.php?forum_uri=$1&start=$3 [QSA,L,NC]
# END PHPBB PAGES
#####################################################
<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 lines
# Options +FollowSymlinks
# To make sure that rewritten dir or file (/|.html) will not load dir.php in case it exist
# Options -MultiViews
# 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 http://www.phpbb-seo.com" onclick="window.open(this.href);return false;
# STARTED : 01/2006
#################################
# FORUMS PAGES
###############
# FORUM INDEX
RewriteRule ^forum\.html$ /index.php [QSA,L,NC]
# FORUM
RewriteRule ^[a-z0-9_-]*-f([0-9]+)/?(page([0-9]+)\.html)?$ /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$ /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$ /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$ /viewtopic.php?forum_uri=$1&t=$2&start=$4 [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
# 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_-]+)/?(page([0-9]+)\.html)?$ /viewforum.php?forum_uri=$1&start=$3 [QSA,L,NC]
# END PHPBB PAGES
#####################################################
ESpeor que me podais orientar un poco, gracias.