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

check mod_rewrite on install #12

Open
DevAlien opened this issue Mar 24, 2011 · 0 comments
Open

check mod_rewrite on install #12

DevAlien opened this issue Mar 24, 2011 · 0 comments
Assignees
Labels

Comments

@DevAlien
Copy link
Owner

When you install the cms the system will check if you have the mod_rewrite enabled.
The problem is that if apache is running under CGI/FCGI as is doing on my server we can't check with the apache functions.

Proposed solution:
While the installer is running we could do a ajax request to a page in a subfolder that should be loaded with the mod_rewrite. If the mod_rewrite is enabled we will see the page if not we will receive a 500 header error

We should create a directory "check" in the install directory and inside we will insert a .htaccess file with:

RewriteEngine On
RewriteRule ^check([^/]*).html$ check.php?check=$1 [L]

and a file called check.php with this Code:

In that way we can do an ajax call to the file /check/check1.html and if we get enabled it's working if we get the 500 error the mod_rewrite is not enabled

@ghost ghost assigned DevAlien Apr 12, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant