Home Private Messages Search
CPG Dragonfly™ CMS stopsoftwarepatents.eu petition banner
Toggle Content
 
Forums ⇒ Miscellaneous ⇒ Search Engines :: Archives ⇒ htaccess rule to redirect all /forums traffic to /forumspro :: Archived


htaccess rule to redirect all /forums traffic to /forumspro :: Archived
Questions and issues with search engines, SEO, bots, meta tags.
Go to page 1, 2  Next
Post new topic    Revive this topic    Printer Friendly Page     Forum Index ⇒  Search Engines

Topic Archived View previous topic :: View next topic  
Author Message
CatchImran
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Mar 06, 2006
Posts: 635
Location: India
PostPosted: Sat Jun 30, 2007 6:38 pm
Post subject: htaccess rule to redirect all /forums traffic to /forumspro

I want to do this to remove all the Forums links in the Google Index. devon told me that a topic for the same exists here but I have tried for quite sometime now but in vain. Can anybody help me out with this please?

_________________


Visit www.RadoPOD.com Today!

CatchImran's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/2.0.54 (Unix)/5.0.51/5.2.6/DragonflyCMS 9.2.1
Back to top
View user's profile Visit poster's website
greenday2k
Forum Admin
Forum Admin

Offline Offline
Joined: Aug 11, 2005
Posts: 489
Location: CO
PostPosted: Sun Jul 01, 2007 12:40 am
Post subject: Re: htaccess rule to redirect all /forums traffic to /forums

Not sure, but try this:

Code::
  RewriteRule ^Forums/viewforum/f=([0-9]*).html Forums_Pro/viewforum/f=$1.html
  RewriteRule ^Forums/viewtopic/t=([0-9]*).html Forums_Pro/viewtopic/t=$1.html
 RewriteRule ^Forums/c=([0-9]*).html Forums_Pro/c=$1.html

_________________
www.greenday2k.net


greenday2k's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website MSN Messenger Yahoo Messenger
greenday2k
Forum Admin
Forum Admin

Offline Offline
Joined: Aug 11, 2005
Posts: 489
Location: CO
PostPosted: Sun Jul 01, 2007 10:30 am
Post subject: Re: htaccess rule to redirect all /forums traffic to /forumspro

Use those lines BEFORE:

Code::
RewriteRule ^index\.html /index.php

_________________
www.greenday2k.net


greenday2k's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website MSN Messenger Yahoo Messenger
CatchImran
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Mar 06, 2006
Posts: 635
Location: India
PostPosted: Sun Jul 01, 2007 11:44 am
Post subject: Re: htaccess rule to redirect all /forums traffic to /forumspro

Thanks man but which .htaccess file should I put them in and where should I be putting it? No idea about that as well.

_________________


Visit www.RadoPOD.com Today!

CatchImran's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/2.0.54 (Unix)/5.0.51/5.2.6/DragonflyCMS 9.2.1
Back to top
View user's profile Visit poster's website
CatchImran
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Mar 06, 2006
Posts: 635
Location: India
PostPosted: Sun Jul 01, 2007 11:55 am
Post subject: Re: htaccess rule to redirect all /forums traffic to /forums

I figured out that you were talking about the file in the site root.

Code::
# if you use LEO and CPG-Nuke is installed in a sub-directory like '/html',
  # remove that # before RewriteBase and rename /html to the path of the sub-directory
  # RewriteBase /html
  RewriteRule ^Forums/viewforum/f=([0-9]*).html Forums_Pro/viewforum/f=$1.html
  RewriteRule ^Forums/viewtopic/t=([0-9]*).html Forums_Pro/viewtopic/t=$1.html
  RewriteRule ^Forums/c=([0-9]*).html Forums_Pro/c=$1.html
  # RewriteRule ^index\.html /index.php

I have added it and it looks something like what I have pasted above. Am I correct or not?

_________________


Visit www.RadoPOD.com Today!

CatchImran's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/2.0.54 (Unix)/5.0.51/5.2.6/DragonflyCMS 9.2.1
Back to top
View user's profile Visit poster's website
greenday2k
Forum Admin
Forum Admin

Offline Offline
Joined: Aug 11, 2005
Posts: 489
Location: CO
PostPosted: Mon Jul 02, 2007 12:07 am
Post subject: Re: htaccess rule to redirect all /forums traffic to /forums

Quote::
# if you use LEO and CPG-Nuke is installed in a sub-directory like '/html',
# remove that # before RewriteBase and rename /html to the path of the sub-directory
# RewriteBase /html
RewriteRule ^Forums/viewforum/f=([0-9]*).html ForumsPro/viewforum/f=$1.html
RewriteRule ^Forums/viewtopic/t=([0-9]*).html ForumsPro/viewtopic/t=$1.html
RewriteRule ^Forums/c=([0-9]*).html ForumsPro/c=$1.html
# RewriteRule ^index\.html /index.php

Sorry, is not Forums_Pro, but ForumsPro or your installation folder name.

_________________
www.greenday2k.net


greenday2k's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website MSN Messenger Yahoo Messenger
CatchImran
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Mar 06, 2006
Posts: 635
Location: India
PostPosted: Mon Jul 02, 2007 1:01 pm
Post subject: Re: htaccess rule to redirect all /forums traffic to /forumspro

Thanks for all the help but there seems to be a small problem. When I switched to Forums Pro I had not switched LEO on. Therefore this is how all the Forum pages indexed in the Google Search look like.

www.radopod.com/index....opic&t=145

I need to redirect the Bots from this to what I am using now i.e. Forums Pro with LEO on. Can you suggest me something specifically for this?

_________________


Visit www.RadoPOD.com Today!

CatchImran's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/2.0.54 (Unix)/5.0.51/5.2.6/DragonflyCMS 9.2.1
Back to top
View user's profile Visit poster's website
greenday2k
Forum Admin
Forum Admin

Offline Offline
Joined: Aug 11, 2005
Posts: 489
Location: CO
PostPosted: Mon Jul 02, 2007 10:46 pm
Post subject: Re: htaccess rule to redirect all /forums traffic to /forums

Add this rule
Quote::

# RewriteBase /html
RewriteRule ^index.php?name=Forums&file=viewtopic&t=([0-9]*)
index.php?name=ForumsPro&file=viewtopic&t=$1

_________________
www.greenday2k.net


greenday2k's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website MSN Messenger Yahoo Messenger
CatchImran
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Mar 06, 2006
Posts: 635
Location: India
PostPosted: Tue Jul 03, 2007 4:57 am
Post subject: Re: htaccess rule to redirect all /forums traffic to /forums

This is what it looks like now

Code::
  # RewriteBase /html
  RewriteRule ^index.php?name=Forums&file=viewtopic&t=([0-9]*) 
  index.php?name=ForumsPro&file=viewtopic&t=$1
  # RewriteRule ^index\.html /index.php

Am I correct?

_________________


Visit www.RadoPOD.com Today!

CatchImran's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/2.0.54 (Unix)/5.0.51/5.2.6/DragonflyCMS 9.2.1
Back to top
View user's profile Visit poster's website
CatchImran
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Mar 06, 2006
Posts: 635
Location: India
PostPosted: Tue Jul 03, 2007 5:13 am
Post subject: Re: htaccess rule to redirect all /forums traffic to /forumspro

Tried it on my site and it gives a 500 Internal Server error while trying to open the site. I have been able to restore the site by placing a correct .htaccess file but would you suggest me to try something else that works please?

_________________


Visit www.RadoPOD.com Today!

CatchImran's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/2.0.54 (Unix)/5.0.51/5.2.6/DragonflyCMS 9.2.1
Back to top
View user's profile Visit poster's website
CatchImran
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Mar 06, 2006
Posts: 635
Location: India
PostPosted: Tue Jul 03, 2007 5:14 am
Post subject: Re: htaccess rule to redirect all /forums traffic to /forumspro

Can you give me the entire code how it looks so that I can just copy and paste it in case I am missing something here!

_________________


Visit www.RadoPOD.com Today!

CatchImran's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/2.0.54 (Unix)/5.0.51/5.2.6/DragonflyCMS 9.2.1
Back to top
View user's profile Visit poster's website
CatchImran
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Mar 06, 2006
Posts: 635
Location: India
PostPosted: Tue Jul 03, 2007 2:16 pm
Post subject: Re: htaccess rule to redirect all /forums traffic to /forumspro

Can you please explain me what these are for

([0-9]*) and $1

I would like to extend this great feature to block more stuff on my site. As for the Forums I am using a line of code derived from what you have suggested.

_________________


Visit www.RadoPOD.com Today!

CatchImran's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/2.0.54 (Unix)/5.0.51/5.2.6/DragonflyCMS 9.2.1
Back to top
View user's profile Visit poster's website
CatchImran
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Mar 06, 2006
Posts: 635
Location: India
PostPosted: Tue Jul 03, 2007 2:52 pm
Post subject: Re: htaccess rule to redirect all /forums traffic to /forumspro

Another doubt that I have. Now that I have setup the .htaccess file will it redirect anyone trying to access the page. If so I have tried it but it doesen't seem to be redirecting.

_________________


Visit www.RadoPOD.com Today!

CatchImran's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/2.0.54 (Unix)/5.0.51/5.2.6/DragonflyCMS 9.2.1
Back to top
View user's profile Visit poster's website
greenday2k
Forum Admin
Forum Admin

Offline Offline
Joined: Aug 11, 2005
Posts: 489
Location: CO
PostPosted: Tue Jul 03, 2007 4:55 pm
Post subject: Re: htaccess rule to redirect all /forums traffic to /forumspro

www.widexl.com/scripts...write.html

_________________
www.greenday2k.net


greenday2k's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website MSN Messenger Yahoo Messenger
CatchImran
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Mar 06, 2006
Posts: 635
Location: India
PostPosted: Wed Jul 04, 2007 8:21 am
Post subject: Re: htaccess rule to redirect all /forums traffic to /forumspro

I seriously think that if I were able to understand all that is given on the page I would be asking for help here.

_________________


Visit www.RadoPOD.com Today!

CatchImran's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/2.0.54 (Unix)/5.0.51/5.2.6/DragonflyCMS 9.2.1
Back to top
View user's profile Visit poster's website
Display posts from previous:   
Post new topic    Revive this topic    Printer Friendly Page    Forum Index ⇒  Search Engines
Page 1 of 2
All times are GMT
Go to page 1, 2  Next

Archive Revive
Username:
This is an archived topic - your reply will not be appended here.
Instead, a new topic will be generated in the active forum.
The new topic will provide a reference link to this archived topic.
 
   Toggle Content User Info

Welcome Anonymous

Nickname
Password
(Register)

   Toggle Content Last CVS commits
· Fixed .ico Expires header.
· Removed domain name from cookies so subdomains wont access them anymore.
· CSS and JS, case insensitives.
· CSS and JS, send correct HTTP 1.1 headers and fixed issues where themes and...
· Further security class improvements.
· 301 redirects on LEO changes
· Option to force 3xx http status codes
· Validate googlebot.com and google.com crawlers.
· CCBot
· Rss with etag and atom.

read more...

   Toggle Content Community

Support for DragonflyCMS in a other languages:

Deutsch
Español

   Toggle Content X-links
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
Interactive software released under GNU GPL, Code Credits, Privacy Policy