How to remove rss feed urls

newyou

Joined: 2012-12-14
Posts: 5
Posted: Fri, 2012-12-14 14:44

Over the last couple of years, google looks like it has indexed some old rss feed urls from the gallery and it is now reporting them as Server 500 Errors. There are about 5000 of them and it is having an effect on ranking as you can imagine.

I have since turned off the rss feed option in admin and want to find out how I can remove these URLs. Are they actually still there?

This is the url: newyoubootcamp.com/gallery/main.php?g2_view=rss.SimpleRender&g2_itemId=2386

Can anyone help by letting me know how I can remove the above URL or somehow stop the Server errors

Thanks

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Fri, 2012-12-14 15:22

uninstall the rss module

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
newyou

Joined: 2012-12-14
Posts: 5
Posted: Fri, 2012-12-14 16:46

Even after uninstalling the RSS module, the previously generated URL still reports a 500 server error.

I'm using http://www.webconfs.com/http-header-check.php to check the URLs that Google has indexed

www dot newyoubootcamp.com/gallery/main.php?g2_view=rss.SimpleRender&g2_itemId=2386

and if I click on the link I get

"Security Violation

The action you attempted is not permitted.

Back to the Gallery"

- N

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Fri, 2012-12-14 17:06

try adding a redirect in your htaccess:

RedirectMatch 404 ^/gallery/main.php?g2_view=rss.SimpleRender.*$

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
newyou

Joined: 2012-12-14
Posts: 5
Posted: Fri, 2012-12-14 17:26

So I would just paste that straight into the htaccess file that is within the gallery folder?

This is what is already in the file:

<IfModule mod_php4.c>
php_value upload_max_filesize 50M
php_value max_execution_time 800
</IfModule>

# BEGIN Url Rewrite section
# (Automatically generated. Do not edit this section)
<IfModule mod_rewrite.c>
RewriteEngine On

RewriteBase /gallery/

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} gallery\_remote2\.php
RewriteCond %{REQUEST_URI} !/gallery/main\.php$
RewriteRule . - [L]

RewriteCond %{THE_REQUEST} /gallery/d/([0-9]+)-([0-9]+)/([^/?]+)(\?.|\ .)
RewriteCond %{REQUEST_URI} !/gallery/main\.php$
RewriteRule . /gallery/main.php?g2_view=core.DownloadItem&g2_itemId=%1&g2_serialNumber=%2&g2_fileName=%3 [QSA,L]
RewriteCond %{THE_REQUEST} /gallery/v/([^?]+)\.davmount(\?.|\ .)
RewriteCond %{REQUEST_URI} !/gallery/main\.php$
RewriteRule . /gallery/main.php?g2_view=webdav.DownloadDavMount&g2_path=%1 [QSA,L]
RewriteCond %{THE_REQUEST} /gallery/w(/[^?]*)?(\?.|\ .)
RewriteCond %{REQUEST_URI} !/gallery/main\.php$
RewriteRule . /gallery/main.php?g2_controller=webdav.WebDav&g2_path=%1 [QSA,L]
RewriteCond %{THE_REQUEST} /gallery/v/([^?]+)(\?.|\ .)
RewriteCond %{REQUEST_URI} !/gallery/main\.php$
RewriteRule . /gallery/main.php?g2_path=%1 [QSA,L]
</IfModule>

# END Url Rewrite section

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Fri, 2012-12-14 17:36

yes

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
newyou

Joined: 2012-12-14
Posts: 5
Posted: Fri, 2012-12-14 17:42

Cool so i have pasted that in at the end of the file and reuploaded it.

The url still goes to the security violation page - should it have gone to a 404 page? (I do have one in the gallery folder).

-N

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Fri, 2012-12-14 17:52

I'm no htaccess expert, maybe the match syntax is off
I usually use these tips
or try googling

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
newyou

Joined: 2012-12-14
Posts: 5
Posted: Fri, 2012-12-14 17:58

OK cool. Thanks for all the assistance though - much appreciated.

 
tempg

Joined: 2005-12-17
Posts: 1857
Posted: Fri, 2012-12-14 19:34

Try:

RewriteCond %{QUERY_STRING} ^g2_view=rss(.*)$
RewriteRule (.*)$ /gallery [NC,L,R=410]
 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Sun, 2012-12-16 05:36

Create a file called robots.txt in your website's root folder (not gallery folder) and disallow *g2_view=rss*. The links will disappear over time.

You can check the google webmasters website for how to configure robots.txt.

I had a similar issue with rss & slideshow pages & used this to fix.
--
dakanji.com