| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
hvactechforum
Joined: 03 Mar 2007 Posts: 44
|
Posted: 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...
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

Joined: 28 Apr 2006 Posts: 14403
|
|
| Back to top |
|
 |
hvactechforum
Joined: 03 Mar 2007 Posts: 44
|
Posted: 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

Joined: 28 Apr 2006 Posts: 14403
|
|
| Back to top |
|
 |
hvactechforum
Joined: 03 Mar 2007 Posts: 44
|
Posted: 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

Joined: 28 Apr 2006 Posts: 14403
|
|
| Back to top |
|
 |
|
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |