Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
Thread Tools Display Modes
Share |
  #1  
Old 05-05-2011, 07:39 AM
neilsingh's Avatar
neilsingh neilsingh is offline
Junior Member
 
Join Date: 05-05-11
Location: London
Posts: 3
iTrader: 0 / 0%
Redirect help!

Hi Guys,

I need some help setting up a redirect.

I want to redirect users from my old RSS feed to my feedburner account using htaccess

So I want to redirect:

/index2.php?option=com_rss&feed=RSS2.0&no_html=1

to

/index.php?format=feed&type=rss

Can anyone help?
 
Reply With Quote

Advertisement

Advertisement

  #2  
Old 05-05-2011, 08:02 AM
nemrod's Avatar
nemrod nemrod is offline
v7n Mentor
 
Join Date: 12-21-10
Location: Sweden
Posts: 463
iTrader: 0 / 0%
Code:
RewriteRule ^index2.php\?option=com_rss&feed=RSS2\.0&no_html=1$ http://www.example.com/index.php\?format=feed&type=rss [R=301,L]
Written in a hurry and untested, might've made a mistake somewhere.
 
Reply With Quote
  #3  
Old 05-05-2011, 09:15 AM
neilsingh's Avatar
neilsingh neilsingh is offline
Junior Member
 
Join Date: 05-05-11
Location: London
Posts: 3
iTrader: 0 / 0%
Thanks, but I could get it to work
 
Reply With Quote
  #4  
Old 05-05-2011, 09:15 AM
neilsingh's Avatar
neilsingh neilsingh is offline
Junior Member
 
Join Date: 05-05-11
Location: London
Posts: 3
iTrader: 0 / 0%
It's ok, I found a solution
Code:
RewriteCond %{REQUEST_FILENAME} index2.php RewriteCond %{QUERY_STRING} ^option=com_rss&feed=RSS2.0&no_html=1$ RewriteRule ^index2\.php$ /index.php?format=feed&type=rss [R=301,L]
Thanks for your help

Last edited by snakeair; 05-05-2011 at 09:07 PM.
 
Reply With Quote
  #5  
Old 05-07-2011, 02:40 PM
T0d's Avatar
T0d T0d is offline
v7n Mentor
 
Join Date: 01-11-04
Location: Sacramento
Posts: 1,569
iTrader: 0 / 0%
You could also create index2.php and setup redirection in there if yo have multiple qry strings you must redirect this will save time, and you can do it all in php with an array
 
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
301 redirect AlaskanGuy SEO Forum 24 10-06-2011 10:22 PM
301 Redirect buggie SEO Forum 5 12-30-2010 06:46 AM
301 redirect pht SEO Forum 3 03-28-2010 09:49 PM
Help About 301-redirect hendrix501 SEO Forum 2 11-04-2008 10:02 PM
How to 301 redirect.. realestate SEO Forum 11 11-26-2004 10:55 PM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 12:35 AM.
Powered by vBulletin
Copyright 2000-2014 Jelsoft Enterprises Limited.
Copyright © 2003 - 2018 VIX-WomensForum LLC