All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Htaccess conversion in OpenLitespeed
I am using Open litespeed on my vps, can someone please help me configure/rewrite CakePHP's htaccess for openlitespeed based server.
Here are the different codes...
<IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^$ app/webroot/ [L] RewriteRule (.*) app/webroot/$1 [L] </IfModule>
<IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^$ webroot/ [L] RewriteRule (.*) webroot/$1 [L] </IfModule>
<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php [QSA,L] </IfModule>
<IfModule mod_rewrite.c> RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L] </IfModule>
Thanks in advance...
Comments
http://open.litespeedtech.com/mediawiki/index.php/Help:Rewrite_Rule_Differences
"For rewrite rules, OpenLiteSpeed uses the same syntax as Apache's mod_rewrite. Apache rewrite rules can be copied and pasted into OpenLiteSpeed's Rewrite Rules field (WebAdmin > Configuration > Virtual Hosts > your virtual host > Rewrite > Rewrite Rules)."
I tried that, but cakePHP uses multiple htaccess files, so its not working... I need to convert it....
An what do you need to convert if it's support standard Apache mod_rewrite rules? Maybe rewrite to something else and not convert?
If yes, than community would like to receive $7 or nude pics of your sister.
I've not tried but give a shot to
If doesn't work, see if I missed something by following link given on above reply.
Nope It doesnt work I have tried almost everything but everything fails...
This might help>>
https://book.cakephp.org/2.0/en/installation/url-rewriting.html
For anyone searching this in future: Modified code was correct, problem was with configs
Correct code again:
1st file: (/)
Seconds: (/app)
3: (/app/webroot)
I wish this worked for me, but I still have many issues specially with CakePHP, if somebody can help I really appreciate that.
there is an update, new option called "auto load htaccess" , should behave same as apache , don't need to modify the rewrite base.
Perhaps ask on the CakePHP mailing list,m or community, it’s ore likely someone had the same issue already..
Nope not even CyberPanel support after I gave them access to the server, I am testing now under CyberPanel Enterprise because the issue is only related to the .htaccess configuration.