I can't figure out why this is happening. I think it's related to SEF URLs, but I'm hoping someone else can explain this to me.
So, I have a URL that looks like it should:
http://www.domain.com/pagename
When I go to this page, it is styled using the correct template and has all the modules that it should and it looks great.
The problem I just found is that I every article on my site can be linked like so:
http://www.domain.com/write-anything-here/article-number
When I go to a URL like this, it uses the same module and theme as my main default page, except with whatever article number is in the URL. It looks awful because the content doesn't match the layout and shouldn't be there.
Edit: I've done more investigating and I reduced it down to the IIS rewrite rule:
/component/|(/[^.]*|\.(php|html?|feed|pdf|vcf|raw))$
Does anyone know how I can fix this so that I can still use SEF URLs but not expose every article of the site?
I think the real issue is that even with URL Rewrite off I can still go to every article by it's article number. http://www.website.com/index.php/187 takes me to article 187 and it shouldn't. Do I have something in Joomla configured incorrectly?