All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Need help with mod_rewrite
Heya,
So I am trying to install a codecanyon script which requires the following presets:
PHP Version 5.3+
cURL Extension (enabled on most hosts by default)
MySQLi extension (enabled on most hosts by default)
short_open_tags enabled
mod_rewrite enabled
Naturally, this shouldn't be a problem, yet I cant seem to get rewrite to work. I am running a LAMP stack on a Ubuntu 14.04 vps and as you can see in phpinfo (below) rewrite is supposedly enabled...
If I go to http://myipadress/login it doesnt work. When I go to http://myipadress/login.php it does.
Any idea why this doesnt work?
Here is my: php.info . As you can see all the other requirments are meet and so should be rewrite.
I have run "a2enmod rewrite" and the following settings in .htaccess
Comments
Make sure to use the following code in .htaccess:
Thanks, will give it a try
So Id replace line 3 of http://pastebin.com/xG5JGc5V with what you just posted?
Do you have correct AllowOverride setting to allow usage of .htaccess?
Yes, that's correct. Try and let me know, eventually you can even use this one if it's for login only:
Still doesnt work. No I havent done AllowOverride thing. What would I need to do? Thought I wouldnt need this as Im not having any vhosts.
@andreamada
Have you tried with the updated rule given above?
Make sure to upload the .htaccess in the root directory.
Still doesnt work. .htaccess looks like this atm: http://pastebin.com/hq8Du39e
Set "AllowOverride All" in the Directory config section of your website.
Would that go in /etc/apache2/sites-available/default ?
Was returned this:
Output of config test was:
AH00526: Syntax error on line 14 of /etc/apache2/sites-enabled/000-default.conf:
AllowOverride not allowed here
Action 'configtest' failed.
Apache2 doesn't have htaccess turned on by default. I put your instructions here: http://quoque.su
PS: can't paste code. I hate Cloudflare. (a lot)
The first part didnt even exist in my 000-default.conf
will try
Output of config test was:
AH00526: Syntax error on line 15 of /etc/apache2/sites-enabled/000-default.conf:
AllowOverride not allowed here
Action 'configtest' failed.
EDIT: now it works thanks
You have to put it inside the <Directory> section.
I was going to say the same, enable Set "AllowOverride All", enable "sudo a2enmod rewrite" and restart apache.
Glad to see that you got it working now
There is however still a problem:
At my vps the landing page looks like this: http://46.38.237.40/
However it is supposed to look like at my webhosting plan: http://test.nicos-web.com/
So the only thing I can imagine is their difference in phpinfo/serverapi.
vps uses apache2 handler webhosting fastcgi. could this be the reason why the one site works but the other doesnt?
Not working site phpinfo: http://46.38.237.40/info.php
Working site phpinfo: http://test.nicos-web.com/info.php
it's probably not an php issue after all.
you're either lacking some files (esp. the css scripts and some more) at all, or your rewrite rules break it for those files to be accessed properly.
Looks like you have some file permission related errors -
Aight thanks Something to look into tomorrow^^