Can some please help! I have a music (net radio) site, with a lyrics subdirectory which contains (naturally enough) lyrics. Google should be listing these pages as follows: http://www.domain.com/lyrics/FILENAME Instead, for some reason I can't understand, Google is listing these pages as follows: http://www.domain.com/index.php/lyrics/le-diner.html What's going on here? How is index.php getting inserted into the URL???? The only thing I can think of is there's something in my htaccess file causing this? Even so, how do I correct the problem correcting the htaccess file? My site is largely invisible because of this glitch. Thanks for any ideas.
I thought I'd ask the question in a different way in the hopes of getting an answer..... How do I get htaccess file to redirect URLS like this one: http://www.MYDOMAIN.com/index.php/lyrics/FILENAME.html to URLS like this one: http://www.MYDOMAIN.com/lyrics/FILENAME.html
Thanks for the suggestion. That rewrite doesn't seem to work for me, though. Again, I'm trying to remove "index.php" from URLS such as this: http://www.quass.com/index.php/lyrics/FILENAME.html The rewrite actually seems to INSERT index.php into my other URLS.
Well, this rewrite does not INSERT index.php, but makes http://www.quass.com/lyrics/FILENAME.html to work properly, but you should also change your script to generate URLs without index.php.
When I add that rewrite instruction, it makes other pages of mine load as index.php. I'm not saying this is the script's fault -- but that's what's happening. Maybe there's something else wrong on my end that causes this in combination with the script. As far as generating URLS without index.php, that's the whole problem. I don't know how or where that happened in the first place. But thanks for the analysis. I will check the scripts involved and maybe I'll figure out a way in which they could be generating these sorts of links.