.htaccess

The GYM Sitemaps and RSS module and it's plug-ins.
Google Yahoo MSN Sitemaps (United 0.9).
RSS 2.0 Feeds and Yahoo! urllist.txt.

Moderator: Moderators

.htaccess

Postby ronyeli » Tue Apr 10, 2007 12:23 pm

ok, i have done the changes as you suggested...will see if it works.

meanwhile, i am posting my .htaccess file....maybe you will find some other bad coding...can you take a look?:

Code: Select all
DirectoryIndex index.php
RewriteEngine On
RewriteBase /

redirect 301 /index.htm http://www.forhair.com/index.php

# Action application/x-pair-sphp4 /cgi-sys/php-cgiwrap/forhair/php4.cgi
# AddType application/x-pair-sphp4 .php

php_value magic_quotes_gpc 1
php_value register_globals 0

RewriteEngine On
RewriteBase /
#########################################################
# PHPBB SEO REWRITE RULES            #
#########################################################
# AUTHOR : DCZ http://www.phpbb-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# FORUM INDEX (un-comment if used)
# RewriteRule ^hairtransplant/index\.html$ /hairtransplant/index.php [QSA,L]
# FORUM PROTECTION RULE
RewriteRule ^hairtransplant/.*/([^/]+\.html)$ /hairtransplant/index.php [R=301,L]
# CATEGORIES
RewriteRule ^hairtransplant/.*-c([0-9]+)\.html$ /hairtransplant/index.php?c=$1 [QSA,L]
# PAGINATED FORUM
RewriteRule ^hairtransplant/.*-f([0-9]+)-([0-9]+)\.html$ /hairtransplant/viewforum.php?f=$1&start=$2 [QSA,L]
# FORUM
RewriteRule ^hairtransplant/.*-f([0-9]+)\.html$ /hairtransplant/viewforum.php?f=$1 [QSA,L]
# PAGINATED TOPIC
RewriteRule ^hairtransplant/topic([0-9]+)-([0-9]+)\.html$ /hairtransplant/viewtopic.php?t=$1&start=$2 [QSA,L]
# TOPIC
RewriteRule ^hairtransplant/topic([0-9]+)\.html$ /hairtransplant/viewtopic.php?t=$1 [QSA,L]
# POST
RewriteRule ^hairtransplant//?post([0-9]+)\.html$ /hairtransplant/viewtopic.php?p=$1 [QSA,L]
#PROFILES
RewriteRule ^hairtransplant/member([0-9]+)\.html$ /hairtransplant/profile.php?mode=viewprofile&u=$1 [QSA,L]
# END PHPBB PAGES
#####################################################

#########################################################
# GYM SITEMAPS AND RSS REWRITE RULES         #
#########################################################
# AUTHOR : dcz http://www.phpbb-seo.com/
# STARTED : 2006/02/22
########################
# RSS main
RewriteRule ^hairtransplant/rss-?(l|s)?-?(m)?\.([xml|xml\.gz]+)$ /hairtransplant/rss.php?$1&$2 [L]
# RSS forums
RewriteRule ^hairtransplant/forums-rss-?(l|s)?-?(m)?\.([xml|xml\.gz]+)$ /hairtransplant/rss.php?forum&c&$1&$2 [L]
# RSS all
RewriteRule ^hairtransplant/([a-zA-Z0-9]+)-rss([0-9]*)-?(l|s)?-?(m)?\.([xml|xml\.gz]+)$ /hairtransplant/rss.php?$1=$2&$3&$4 [L]
# RSS forum topics
RewriteRule ^hairtransplant/.+-rf([0-9]+)-?(l|s)?-?(m)?\.([xml|xml\.gz]+)$ /hairtransplant/rss.php?forum=$1&$2&$3 [L]
# SitemapIndex
RewriteRule ^hairtransplant/sitemaps\.([xml|xml\.gz]+)$ /hairtransplant/sitemap.php [L]
# Sitemap modules
RewriteRule ^hairtransplant/([a-zA-Z0-9]+)-sitemap\.([xml|xml\.gz]+)$ /hairtransplant/sitemap.php?$1 [L]
# Forum Sitemaps
RewriteRule ^hairtransplant/.+-gf([0-9]+)\.([xml|xml\.gz]+)$ /hairtransplant/sitemap.php?forum=$1 [L]
# Yahoo! urllist.txt
RewriteRule ^hairtransplant/urllist\.([txt|txt\.gz]+)$ /hairtransplant/urllist.php [L]
#########################################################
# END GYM SITEMAPS AND RSS REWRITE RULES      #
#########################################################

RewriteRule ^hairtransplant/forums.* /hairtransplant/index.php [L,NC]
RewriteRule ^hairtransplant/post-([0-9]*).html&highlight=([a-zA-Z0-9]*) /hairtransplant/viewtopic.php?p=$1&highlight=$2 [L,NC]
RewriteRule ^hairtransplant/post-([0-9]*).* /hairtransplant/viewtopic.php?p=$1 [L,NC]
RewriteRule ^hairtransplant/view-poll([0-9]*)-([0-9]*)-([a-zA-Z]*).* /hairtransplant/viewtopic.php?t=$1&postdays=$2&postorder=$3&vote=viewresult [L,NC]
RewriteRule ^hairtransplant/about([0-9]*).html&highlight=([a-zA-Z0-9]*) /hairtransplant/viewtopic.php?t=$1&highlight=$2 [L,NC]
RewriteRule ^hairtransplant/about([0-9]*).html&view=newest /hairtransplant/viewtopic.php?t=$1&view=newest [L,NC]
RewriteRule ^hairtransplant/about([0-9]*)-([0-9]*)-([a-zA-Z]*)-([0-9]*).* /hairtransplant/viewtopic.php?t=$1&postdays=$2&postorder=$3&start=$4 [L,NC]
RewriteRule ^hairtransplant/about([0-9]*)-([0-9]*).* /hairtransplant/viewtopic.php?t=$1&start=$2 [L,NC]
RewriteRule ^hairtransplant/about([0-9]*).* /hairtransplant/viewtopic.php?t=$1 [L,NC]
RewriteRule ^hairtransplant/about([0-9]*).html /hairtransplant/viewtopic.php?t=$1&start=$2&postdays=$3&postorder=$4&highlight=$5 [L,NC]
RewriteRule ^hairtransplant/mark-forum([0-9]*).html* /hairtransplant/viewforum.php?f=$1&mark=topics [L,NC]
RewriteRule ^hairtransplant/updates-topic([0-9]*).html* /hairtransplant/viewtopic.php?t=$1&watch=topic [L,NC]
RewriteRule ^hairtransplant/stop-updates-topic([0-9]*).html* /hairtransplant/viewtopic.php?t=$1&unwatch=topic [L,NC]
RewriteRule ^hairtransplant/forum-([0-9]*).html /hairtransplant/viewforum.php?f=$1 [L,NC]
RewriteRule ^hairtransplant/forum-([0-9]*).* /hairtransplant/viewforum.php?f=$1 [L,NC]
RewriteRule ^hairtransplant/topic-([0-9]*)-([0-9]*)-([0-9]*).* /hairtransplant/viewforum.php?f=$1&topicdays=$2&start=$3 [L,NC]
RewriteRule ^hairtransplant/ptopic([0-9]*).* /hairtransplant/viewtopic.php?t=$1&view=previous [L,NC]
RewriteRule ^hairtransplant/ntopic([0-9]*).* /hairtransplant/viewtopic.php?t=$1&view=next [L,NC]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php
ronyeli
 
Posts: 18
Joined: Tue Feb 27, 2007 3:11 pm

Advertisement

Postby dcz » Wed Apr 11, 2007 9:42 am

A bit off topic here, but -http://www.forhair.com/hairtransplant//post5034.html is now well redirected.

Your .htaccess seems correct, you should now take care about the www prefix : -http://forhair.com/hairtransplant/

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21291
Joined: Fri Apr 28, 2006 9:03 pm


Return to GYM Sitemaps phpBB2

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 1 guest