Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

htaccess - rewrite issue #183

Open
boopathi opened this issue Sep 13, 2012 · 4 comments
Open

htaccess - rewrite issue #183

boopathi opened this issue Sep 13, 2012 · 4 comments

Comments

@boopathi
Copy link
Member

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"

@boopathi
Copy link
Member Author

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

@abhishekdelta
Copy link
Member

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 !?

??

@abhishekdelta
Copy link
Member

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.

@boopathi
Copy link
Member Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants