.htaccess/mod_rewrite |
[eluser]Unknown[/eluser]
Good morning! After I don't know how much googeling and skimming forums I've decided to try to ask for help, so you guys are my hairs last hope before ripping it off. ![]() I've been struggeling with an url problem that seems pretty common and googled my fingers sore, done loads of trial and error without any luck at all. Anyho, I'm trying to do: http://127.0.0.1/private_html/devsite/about/ instead of http://127.0.0.1/private_html/devsite/index.php/about/ I get either 500-error from any page when I have RewriteBase pointed at any url besides just /, serverwise or httpwise. When I have RewriteBase pointed to just / I can access the site but once I try http.../devsite/about/ I get an 404 error. Sys/code info: Tried same code on 3 different servers (with similar configurations though), all debian based with latest php/apache/mysql versions. Apache2 is configured to allow mod_rewrite and it is enabled. .htaccess (saved in ascii on the server)(forums wont allow me to show all code but highlight all the white and it shows, strange) Code: RewriteEngine On config.php in CodeIgniter (for some reason the forum dont allow show the code but highlight all the white and it shows, strange) Code: $config['base_url'] = 'http://127.0.0.1/private_html/devsite/'; # Development apache2 error log Code: [Sun Feb 23 17:17:42 2014] [alert] [client 192.168.1.105] /var/www/private_html/devsite/.htaccess: <IfModule takes one argument, Container for directives based on existance of specified modules |
Messages In This Thread |
.htaccess/mod_rewrite - by El Forum - 02-26-2014, 11:54 PM
.htaccess/mod_rewrite - by El Forum - 02-27-2014, 10:42 AM
|