probably someone else have posted similar thread here, but I was unable to find it, so if that is the case, just show it to me.
I've made a website using a framework called Zoop (some of you may already know it). It has the nasty habit of putting an "index.php" in the middle of all the URLs, so a classic link of it looks like that:
http://somesite.com/index.php/something/something2
Fortunately, the developers are aware of the total SEO-unfriendlyness of this style, and provided an htaccess file, so you can get rid of the index.php. The code of the htaccess is simple, here it is:
- Code: Select all
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [QSA,L]
I have an Apache1.3 on my PC, which I use as a developing environment. All went well there, and links were made to work the way they were supposed to work. But when I uploaded the website to an Apache2.2.11 server with a shared hosting, the htaccess stopped working. Mod_rewrite was enabled, as the support told me, and it really did worked (returned an "Error 500" and also made some simple redirects, which I created to test whether it is working). But the rewrite rule was not. Since the file itself was affecting the way the server was working, it was readable and all. I uploaded the site to another shared hosting, also with Apache2.2.11. There it was in a separate directory, which made me use the RewriteBase. But the effect was the same - no pretty URLs.
So, what is wrong? Why it worked on an Apache1.3, but refuses to start on Apache2.2? Been some weeks since I'm trying to resolve that, an on several forums there was no response, so I'm getting kinda desperate.
Thank you all!