[SOLVED] Unable to redirect old RSS link
- Greg
- Topic Author
- Offline
- New Member
15 years 9 months ago - 15 years 9 months ago #3676
by Greg
Joomla 3.4.3 / SefAdvance 1.8.0 / AJAX Register 1.8.8 / virtuemart 3.0.9.4 / PHP 5.4.43
Hi Emir,
Strange but I can redirect (301):
option,com_rss/feed,RSS2.0/no_html,1.html
to: rss.feed
But can't do the same with:
index2.php?option=com_rss&feed=RSS2.0&no_html=1
to: rss.feed
alias doesn't work too...
Strange but I can redirect (301):
option,com_rss/feed,RSS2.0/no_html,1.html
to: rss.feed
But can't do the same with:
index2.php?option=com_rss&feed=RSS2.0&no_html=1
to: rss.feed
alias doesn't work too...
Joomla 3.4.3 / SefAdvance 1.8.0 / AJAX Register 1.8.8 / virtuemart 3.0.9.4 / PHP 5.4.43
Last Edit: 15 years 9 months ago by Greg.
Please Log in or Create an account to join the conversation.
- Saka
- Offline
- Administrator
15 years 9 months ago #3677
by Saka
Emir Sakic
www.sakic.net
SEF Advance version?
Emir Sakic
www.sakic.net
Please Log in or Create an account to join the conversation.
- Greg
- Topic Author
- Offline
- New Member
15 years 9 months ago #3689
by Greg
Joomla 3.4.3 / SefAdvance 1.8.0 / AJAX Register 1.8.8 / virtuemart 3.0.9.4 / PHP 5.4.43
version 1.8.1
Joomla 3.4.3 / SefAdvance 1.8.0 / AJAX Register 1.8.8 / virtuemart 3.0.9.4 / PHP 5.4.43
Please Log in or Create an account to join the conversation.
- Saka
- Offline
- Administrator
15 years 9 months ago #3695
by Saka
Emir Sakic
www.sakic.net
Hello,
You can't redirect non-sef URLs because they are used by Joomla itself. Redirect tool is only for SEF URLs. Additionally, URLs that begin with index2.php are generally meant for popups and such and are not processed at all by SEF Advance, so you can't use alias either.
I suggest you use redirect in .htaccess if you want to redirect this link.
You can't redirect non-sef URLs because they are used by Joomla itself. Redirect tool is only for SEF URLs. Additionally, URLs that begin with index2.php are generally meant for popups and such and are not processed at all by SEF Advance, so you can't use alias either.
I suggest you use redirect in .htaccess if you want to redirect this link.
Emir Sakic
www.sakic.net
Please Log in or Create an account to join the conversation.
- Greg
- Topic Author
- Offline
- New Member
15 years 9 months ago - 15 years 9 months ago #3700
by Greg
Joomla 3.4.3 / SefAdvance 1.8.0 / AJAX Register 1.8.8 / virtuemart 3.0.9.4 / PHP 5.4.43
Thanks for reply Emir,
But I've already tried with the .htaccess (forgot to mention it), so, could you give me the example of the rewrite rule that I should use to do that please.
But I've already tried with the .htaccess (forgot to mention it), so, could you give me the example of the rewrite rule that I should use to do that please.
Joomla 3.4.3 / SefAdvance 1.8.0 / AJAX Register 1.8.8 / virtuemart 3.0.9.4 / PHP 5.4.43
Last Edit: 15 years 9 months ago by Greg.
Please Log in or Create an account to join the conversation.
- Saka
- Offline
- Administrator
15 years 9 months ago #3703
by Saka
Emir Sakic
www.sakic.net
Well such questions take pretty much time of testing and trying but I found it for you this time.
Try:right after the line:
RewriteEngine On
If you have your installation in a subdirectory add it before /rss.feed so it reads:
RewriteRule ^index2\.php$ /subdirectory/rss.feed? [R=301,L]
Try:
RewriteCond %{REQUEST_FILENAME} index2.php
RewriteCond %{QUERY_STRING} ^option=com_rss&feed=RSS2.0&no_html=1$
RewriteRule ^index2\.php$ /rss.feed? [R=301,L]
RewriteEngine On
If you have your installation in a subdirectory add it before /rss.feed so it reads:
RewriteRule ^index2\.php$ /subdirectory/rss.feed? [R=301,L]
Emir Sakic
www.sakic.net
Please Log in or Create an account to join the conversation.