delta/pragyan

htaccess - rewrite issue

Opened this issue · 4 comments

When I try installing pragyanCMS on some box that runs Apache + mod_fcgid + php ... , the htaccess of PragyanCMS works this way

Say, the installation is in http://foo.com/pragyan/
And foo.com/index.php contains -> "FOO.COM"
And foo.com/bar/index.php contains -> "FOO.COM/BAR"

http://foo.com/pragyan/ redirects to http://foo.com/pragyan/home/
also
http://foo.com/pragyan/bar redirects to http://foo.com/pragyan/home/bar

but the page that is loaded for foo.com/pragyan/home is "FOO.COM"
and for foo.com/pragyan/home/bar is "FOO.COM/BAR"

I tried installing wordpress with it's rewrite rules on the same box, and it works fine ..

This just doesn't make sense. We have similar setup in our pragyan servers as well and it works fine there.

pragyan.org has an index.php which redirects(php-based) to pragyan.org/11 which further redirects(htaccess)to pragyan.org/11/home

pragyan.org/10 redirects(htaccess) to pragyan.org/10/home

pragyan.org/10 picks the correct index.php file from its /10 folder and not the index.php file in the main pragyan.org folder !?

??

My previous comment was with reference to the setup that existed when I was in college. Not sure if its the same now. But the point is it did used to work.

that's with mod_php. I'm trying with mod_fcgid ... I know this shouldn't be a problem. But, on the same server, with the same pragyan source files, if I change the apache config to use mod_php and disable mod_fcgid, the rewrite works fine.