Htaccess Is Not Working After Moving from Xampp to Lamp on Ubuntu 13.10 (Enable Htaccess in Apache Linux Server)

htaccess is not working after moving from XAMPP to LAMP on ubuntu 13.10 (Enable htaccess in apache linux server)

I found the solution for this issue.

In my server the mode rewrite is already on. But some default values need to be change on /etc/apache2/apache2.conf file. Following are my changes,

First, find

<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>

And change AllowOverride None to All and save.

Then enable mode rewrite using the command(In this case already enabeled),

$ sudo a2enmod rewrite

Then restart the server,

$ sudo /etc/init.d/apache2 restart

Run the project. Works fine.

.htaccess is not working in xampp (ubuntu)

Make sure your htaccess file is in the right place (/opt/lampp/apache2/htdocs) and that it is readable (chmod 644 /opt/lampp/apache2/htdocs/.htaccess) and that the access file is set to ".htaccess":

AccessFileName .htaccess

By default, it's already ".htaccess" but it could have been changed.

Finally, try adding some gibberish to the top of your htaccess file (like "ashdakjhfdksjfhds"), if you get a 500 internal server error, that means your htaccess file is being read and the problem isn't your setup but the contents of the file.

Moving codeigniter program from xampp to lampp

Glad you found my answer useful @julie.. here is little detail and suggestion on your issue.

You're using short tags <? which is disabled on the production server. I would not suggest you to use short tags as it is mostly disabled on the production servers.

Please check out this answer for details. why avoid short tags

PS: you can enable short code by changing this on your php.ini

short_open_tag=On

CodeIgniter HMVC URL not working on LAMP UBUNTU

It's hard to say for sure with the limited info you've provided, but I would say that the first thing to check if you've uploaded the Codeigniter folder to your server would be the permissions of the folder and files inside of it.

This link should tell you everything you need to know about about getting it set up:

http://idroot.net/tutorials/how-to-install-codeigniter-on-ubuntu-14-04/

CodeIgniter Remove index.php in URL

change in .htaccess file and try it

RewriteEngine On
RewriteBase /project/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]


Related Topics



Leave a reply



Submit