Ver Mensaje Individual
  #1 (permalink)  
Antiguo 12/09/2011, 10:20
Unixtall
 
Fecha de Ingreso: mayo-2010
Mensajes: 39
Antigüedad: 13 años, 11 meses
Puntos: 0
Problema con mod seo url rewrite

Funciona el index funcionan los post pero no las categorias ni los perfiles. Aquí os dejo un ejemplo:

http://www.zonadelvicio.com/foro/el-...de-zdv-f5.html

http://www.zonadelvicio.com/foro/carls-u2.html

Mi .htaccess:
Código:
    # 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
    # Uncomment the statement below if you want to make use of
    # HTTP authentication and it does not already work.
    # This could be required if you are for example using PHP via Apache CGI.
    # RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
    # REWRITE BASE
    RewriteBase /
    # HERE IS A GOOD PLACE TO FORCE CANONICAL DOMAIN
    # RewriteCond %{HTTP_HOST} !^www\.zonadelvicio\.com$ [NC]
    # RewriteRule ^(.*)$ http://www.zonadelvicio.com/$1 [QSA,L,R=301]
 
    # DO NOT GO FURTHER IF THE REQUESTED FILE / DIR DOES EXISTS
    RewriteCond %{REQUEST_FILENAME} -f
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule . - [L]
    #####################################################
    # PHPBB SEO REWRITE RULES ALL MODES
    #####################################################
    # AUTHOR : dcz http://www.phpbb-seo.com
    # STARTED : 01/2006
    #################################
    # FORUMS PAGES
    ###############
    # FORUM INDEX REWRITERULE WOULD STAND HERE IF USED. "forum" REQUIRES TO BE SET AS FORUM INDEX
    # RewriteRule ^foro/forum\.html$ /foro/index.php [QSA,L,NC]
    # FORUM ALL MODES
    RewriteRule ^foro/(forum|[a-z0-9_-]*-f)([0-9]+)/?(page([0-9]+)\.html)?$ /foro/viewforum.php?f=$2&start=$4 [QSA,L,NC]
    # TOPIC WITH VIRTUAL FOLDER ALL MODES
    RewriteRule ^foro/(forum|[a-z0-9_-]*-f)([0-9]+)/(topic|[a-z0-9_-]*-t)([0-9]+)(-([0-9]+))?\.html$ /foro/viewtopic.php?f=$2&t=$4&start=$6 [QSA,L,NC]
    # GLOBAL ANNOUNCES WITH VIRTUAL FOLDER ALL MODES
    RewriteRule ^foro/announces/(topic|[a-z0-9_-]*-t)([0-9]+)(-([0-9]+))?\.html$ /foro/viewtopic.php?t=$2&start=$4 [QSA,L,NC]
    # TOPIC WITHOUT FORUM ID & DELIM ALL MODES
    RewriteRule ^foro/([a-z0-9_-]*)/?(topic|[a-z0-9_-]*-t)([0-9]+)(-([0-9]+))?\.html$ /foro/viewtopic.php?forum_uri=$1&t=$3&start=$5 [QSA,L,NC]
    # PHPBB FILES ALL MODES
    RewriteRule ^foro/resources/[a-z0-9_-]+/(thumb/)?([0-9]+)$ /foro/download/file.php?id=$2&t=$1 [QSA,L,NC]
    # PROFILES ALL MODES WITH ID
    RewriteRule ^foro/(member|[a-z0-9_-]*-u)([0-9]+)/$ /foro/memberlist.php?mode=viewprofile&u=$2 [QSA,L,NC]
    # USER MESSAGES ALL MODES WITH ID
    RewriteRule ^foro/(member|[a-z0-9_-]*-u)([0-9]+)/(topics|posts)/?(page([0-9]+)\.html)?$ /foro/search.php?author_id=$2&sr=$3&start=$5 [QSA,L,NC]
    # GROUPS ALL MODES
    RewriteRule ^foro/(group|[a-z0-9_-]*-g)([0-9]+)(-([0-9]+))?\.html$ /foro/memberlist.php?mode=group&g=$2&start=$4 [QSA,L,NC]
    # POST
    RewriteRule ^foro/post([0-9]+)\.html$ /foro/viewtopic.php?p=$1 [QSA,L,NC]
    # ACTIVE TOPICS
    RewriteRule ^foro/active-topics(-([0-9]+))?\.html$ /foro/search.php?search_id=active_topics&start=$2&sr=topics [QSA,L,NC]
    # UNANSWERED TOPICS
    RewriteRule ^foro/unanswered(-([0-9]+))?\.html$ /foro/search.php?search_id=unanswered&start=$2&sr=topics [QSA,L,NC]
    # NEW POSTS
    RewriteRule ^foro/newposts(-([0-9]+))?\.html$ /foro/search.php?search_id=newposts&start=$2&sr=topics [QSA,L,NC]
    # UNREAD POSTS
    RewriteRule ^foro/unreadposts(-([0-9]+))?\.html$ /foro/search.php?search_id=unreadposts&start=$2 [QSA,L,NC]
    # THE TEAM
    RewriteRule ^foro/the-team\.html$ /foro/memberlist.php?mode=leaders [QSA,L,NC]
    # HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES
 
    # FORUM WITHOUT ID & DELIM ALL MODES (SAME 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 ^foro/([a-z0-9_-]+)/?(page([0-9]+)\.html)?$ /foro/viewforum.php?forum_uri=$1&start=$3 [QSA,L,NC]
    # FIX RELATIVE PATHS : FILES
    RewriteRule ^foro/.+/(style\.php|ucp\.php|mcp\.php|faq\.php|download/file.php)$ /foro/$1 [QSA,L,NC,R=301]
    # FIX RELATIVE PATHS : IMAGES
    RewriteRule ^foro/.+/(styles/.*|images/.*)/$ /foro/$1 [QSA,L,NC,R=301]
    # END PHPBB PAGES
    #####################################################
Mi phpbb_cache.php:

Código:
    <?php
    /**
    * phpBB_SEO Class
    * http://www.phpBB-SEO.com
    * @package Advanced phpBB3 SEO mod Rewrite
    */
    if (!defined('IN_PHPBB')) {
       exit;
    }
    $this->cache_config['settings'] = array ( 'url_rewrite' => true,
    'modrtype' => 3, 'sql_rewrite' => true, 'profile_inj' => true, 'profile_vfolder' => false, 'profile_noids' => true, 'rewrite_usermsg' => true, 'rewrite_files' => false, 'rem_sid' => false, 'rem_hilit' => true, 'rem_small_words' => false, 'virtual_folder' => true, 'virtual_root' => false, 'cache_layer' => true, 'rem_ids' => false, 'copyrights' => array ( 'img' => false, 'txt' => '', 'title' => '', ), 'zero_dupe' => array ( 'on' => true, 'strict' => false, 'post_redir' => 'all', ), 'no_dupe' => array ( 'on' => true, ), );
    $this->cache_config['forum'] = array ( 3 => 'comunidad-zdv-f3', 5 => 'el-rincon-de-zdv-f5', 6 => 'off-topic-f6', 7 => 'sugerencias-de-la-web-f7', 32 => 'foro-staff-f32', 58 => 'noticias-en-la-web-f58', 59 => 'noticias-zdv-f59', 60 => 'noticias-ps3-f60', 61 => 'noticias-xbox-f61', 62 => 'noticias-psp-f62', 63 => 'noticias-wii-f63', 64 => 'noticias-nds-f64', 76 => 'noticias-pc-f76', 86 => 'noticias-multiplataformas-f86', 8 => 'playstation-f8', 9 => 'general-f9', 13 => 'juegos-f13', 14 => 'trucos-y-guias-f14', 30 => 'analisis-f30', 15 => 'online-f15', 16 => 'scene-ps3-f16', 79 => 'downgrades-f79', 80 => 'hardware-dongles-f80', 81 => 'customfirmwares-cfw-f81', 82 => 'programas-y-software-f82', 83 => 'manuales-de-carga-f83', 84 => 'carga-de-backups-f84', 85 => 'firmware-oficiales-f85', 65 => 'homebrew-f65', 10 => 'xbox-f10', 17 => 'general-f17', 18 => 'juegos-f18', 19 => 'trucos-y-guias-f19', 20 => 'online-f20', 21 => 'scene-f21', 11 => 'wii-f11', 22 => 'general-f22', 23 => 'juegos-f23', 24 => 'trucos-y-guias-f24', 25 => 'scene-f25', 26 => 'pc-f26', 28 => 'general-f28', 29 => 'juegos-f29', 31 => 'analisis-f31', 77 => 'programacion-f77', 78 => 'consultas-tecnicas-f78', 33 => 'psp-f33', 34 => 'general-f34', 35 => 'juegos-f35', 36 => 'scene-f36', 37 => 'nds-f37', 38 => 'general-f38', 39 => 'juegos-f39', 40 => 'scene-f40', 51 => 'manuales-f51', );
    ?>
Gracias de antemano, haber si conseguimos solucionarlo!