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


Offline Joined: Mar 06, 2006 Posts: 635 Location: India
|
Posted: 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 |
|
 |
greenday2k Forum Admin


Offline Joined: Aug 11, 2005 Posts: 489 Location: CO
|
|
| Back to top |
|
 |
greenday2k Forum Admin


Offline Joined: Aug 11, 2005 Posts: 489 Location: CO
|
|
| Back to top |
|
 |
CatchImran 500+ Posts Club


Offline Joined: Mar 06, 2006 Posts: 635 Location: India
|
Posted: 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 |
|
 |
CatchImran 500+ Posts Club


Offline Joined: Mar 06, 2006 Posts: 635 Location: India
|
Posted: 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 |
|
 |
greenday2k Forum Admin


Offline Joined: Aug 11, 2005 Posts: 489 Location: CO
|
|
| Back to top |
|
 |
CatchImran 500+ Posts Club


Offline Joined: Mar 06, 2006 Posts: 635 Location: India
|
Posted: 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 |
|
 |
greenday2k Forum Admin


Offline Joined: Aug 11, 2005 Posts: 489 Location: CO
|
|
| Back to top |
|
 |
CatchImran 500+ Posts Club


Offline Joined: Mar 06, 2006 Posts: 635 Location: India
|
Posted: 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 |
|
 |
CatchImran 500+ Posts Club


Offline Joined: Mar 06, 2006 Posts: 635 Location: India
|
Posted: 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 |
|
 |
CatchImran 500+ Posts Club


Offline Joined: Mar 06, 2006 Posts: 635 Location: India
|
Posted: 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 |
|
 |
CatchImran 500+ Posts Club


Offline Joined: Mar 06, 2006 Posts: 635 Location: India
|
Posted: 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 |
|
 |
CatchImran 500+ Posts Club


Offline Joined: Mar 06, 2006 Posts: 635 Location: India
|
Posted: 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 |
|
 |
greenday2k Forum Admin


Offline Joined: Aug 11, 2005 Posts: 489 Location: CO
|
Posted: Tue Jul 03, 2007 4:55 pm Post subject: Re: htaccess rule to redirect all /forums traffic to /forumspro |
|
_________________ www.greenday2k.net

greenday2k's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
|
|
| Back to top |
|
 |
CatchImran 500+ Posts Club


Offline Joined: Mar 06, 2006 Posts: 635 Location: India
|
Posted: 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 |
|
 |
|
|