Welcome to WebmasterWorld Guest from 54.226.133.245

Forum Moderators: ergophobe

Message Too Old, No Replies

odd url behavior in Joomla

site/anycharshere/2-uncategorized.html works?

     
7:11 am on Jan 9, 2014 (gmt 0)

Preferred Member from US 

10+ Year Member

joined:May 6, 2004
posts: 650
votes: 0


I was looking through webmaster tools and saw some entries of pages with a url of http://www.example.com/mobile-home/2-uncategorised.html We had jtouch running a while back and may have had a mobile-home folder. However, all of that is gone now.

I went through the templates and through the extensions and could not find anything generating that URL.

Just as a test I tried http://www.example.com/xxx/2-uncategorised.html and ended up getting the same page. I found that I can put any characters in for the folder after the domain name and the same page comes up.


We are running 2.5.17 with sef, url rewriting and suffixes.

Does anyone have any idea why we would be seeing this and how to get rid of it ?
7:28 pm on Jan 9, 2014 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member lucy24 is a WebmasterWorld Top Contributor of All Time Top Contributors Of The Month

joined:Apr 9, 2011
posts:12696
votes: 244


Someone else

:: carefully avoiding eye contact with g1smd ::

will deal with the aspect of "Why is Joomla doing this and how do I make them stop?" The Joomla-independent fix involves going into your htaccess file and putting in something like

RewriteRule ^[^/]+/2-uncategorised\.html - [G]

with further tweaks if you have any actual URLs containing the element "2-uncategorised.html". This line goes after any existing access-control directives, before any existing 301 redirects.
8:12 pm on Jan 9, 2014 (gmt 0)

Preferred Member from US 

10+ Year Member

joined:May 6, 2004
posts: 650
votes: 0


Lucy24 - Thank you very much.. I definitely appreciate the quick response..


Chris