Bioinformatics Analyst at Seven Bridges & PhD Student at METU


Bioinformatics, web programming, coding in general

If clean URLs don't work in Laravel 4 on Ubuntu 12.04 LTS

.htaccess directions are correct, mod_rewrite is enabled but still you are getting 404 Not Found errors…

You need to change AllowOverride None to AllowOverride All in /etc/apache2/sites-available/default.

Modified section in the file:

<Directory /home/user/www/>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride All
    Order allow,deny
    allow from all

A Nice File Browser for Geany 1.23 on Ubuntu 12.04 LTS

If you’re looking for a file browser for Geany, check out TreeBrowser plugin on its page (see the page for screenshots).

To install and enable, just run following o Terminal:

sudo apt-get install geany-plugin-treebrowser

And go to “Tools” -> “Plugin Manager”, check “TreeBrowser”


Base URL for Your Laravel 4 Website

To get base URL of your website to generate links to your content or assets do following:

Set $url in app/config/app.php to your base URL:

'url' => 'http://localhost/example',

Use it everywhere with URL::to(), for example:

echo URL::to('assets/css/general.css');
/* outputs http://localhost/example/assets/css/general.css */

Remove public from URL Laravel 4

Move all content of (files in) public/ folder one level above (to the base)

Fix paths in index.php:

require __DIR__.'/bootstrap/autoload.php';
$app = require_once __DIR__.'/bootstrap/start.php';

Fix path in bootstrap/paths.php:

'public' => __DIR__.'/..',