phpBB SEO
Boards
Directory  
SEO  
Downloads
  phpBB SEO : Search Engine Optimization, Directory, Forums  
Index
Forums
Annuaire
Référencement
Télécharger
 
  Search Rechercher
    Register
Username :  Password :  Log me on automatically each visit  
S'enregistrer  
 
   
general mod rewrite question

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » Apache mod Rewrite
::  
Author Message
hvactechforum



Joined: 03 Mar 2007
Posts: 44

general mod rewrite questionPosted: Sat Jun 02, 2007 1:47 pm    Post subject: general mod rewrite question

MODERATOR: Could you please move this thread to the Apache Mod Rewrite forum, I posted in the wrong place. Thank you... Smile

I am trying to modify a board so that when one particular forum is clicked on, it simply redirects the user back to the index again. I would like to achieve this with apache mod_rewrite.

Does anyone know the code needed in .htaccess to achieve this:

http://www.hvacruniverse.com/hvacr-talk-f14.html
...redirected always to...
http://www.hvacruniverse.com/

Here is my .htaccess file:
Code:
RewriteEngine On
RewriteBase /

RewriteCond %{HTTP_HOST} ^hvacruniverse\.com$ [NC]
RewriteRule ^(.*) http://www.hvacruniverse.com/$1 [QSA,L,R=301]

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


Joined: 28 Apr 2006
Posts: 14403

general mod rewrite questionPosted: Sat Jun 02, 2007 6:01 pm    Post subject: Re: general mod rewrite question

Code:
RewriteRule ^hvacr-talk-f14\.html $ /index.php [QSA,L,R=301]


Or :

Code:
RewriteRule ^hvacr-talk-f14\.html $ /[QSA,L,R=301]


if you do not use index.php should be enough, right after the www prefix redirection Wink

++

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
hvactechforum



Joined: 03 Mar 2007
Posts: 44

general mod rewrite questionPosted: Sun Jun 03, 2007 1:16 am    Post subject: Re: general mod rewrite question

Thank you. It worked perfectly!

*psst, you need a phpBBseo favicon*
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14403

general mod rewrite questionPosted: Sun Jun 03, 2007 10:19 am    Post subject: Re: general mod rewrite question

hvactechforum wrote:

*psst, you need a phpBBseo favicon*


don't you see it ?

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
hvactechforum



Joined: 03 Mar 2007
Posts: 44

general mod rewrite questionPosted: Sun Jun 03, 2007 11:38 am    Post subject: Re: general mod rewrite question

dcz wrote:
hvactechforum wrote:

*psst, you need a phpBBseo favicon*


don't you see it ?

No, I don't see it when I use my regular browser (IE 7). However, when I view your website with another browser (Opera 10) I do see it.

The source for this page shows this code:
<link rel="shortcut icon" href="http://www.phpbb-seo.com/phpbbseo.ico" type="image/x-icon" />

I tried that code on my website and it didn't work so I use this on my website instead:
<link rel="icon" href="images/favicon.ico" type="image/x-icon">
<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon">

You may want to poll and see who can see it?
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14403

general mod rewrite questionPosted: Sun Jun 03, 2007 12:17 pm    Post subject: Re: general mod rewrite question

Oh I see, feel free to start a pool in the phpBB SEO website forum if you like, I'll work on this.

++

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » Apache mod Rewrite
Page 1 of 1

Navigation Similar Topics

Jump to: