#1  
Old 2nd November 2008, 17:27
bjarne-j bjarne-j is offline
Junior Member
 
Join Date: Apr 2008
Posts: 17
Thanks: 5
Thanked 0 Times in 0 Posts
Default How to enable URL rewriting

Hello,

I've made a .htaccess file with following content:

Code:
RewriteEngine on
RewriteRule ^(.+)/$ index.php
I'm trying to point everything to index.php, but it doesn't work. My server returns an 404 error.

My server is configured as "the perfect server" guide describes(debian etch).

Loaded Modules:
Code:
core mod_log_config mod_logio prefork http_core mod_so mod_alias mod_auth_basic mod_authn_file mod_authz_default mod_authz_groupfile mod_authz_host mod_authz_user mod_autoindex mod_cgi mod_dir mod_env mod_include mod_mime mod_negotiation mod_php5 mod_rewrite mod_setenvif mod_ssl mod_status mod_suexec
Does mod_rewrite have to be enabled somewhere else?

Thanks in advance.
Reply With Quote
Sponsored Links
  #2  
Old 2nd November 2008, 20:14
Ben Ben is offline
Moderator
 
Join Date: Jul 2006
Posts: 1,029
Thanks: 7
Thanked 62 Times in 56 Posts
Default

I am not that sure of those rules, but afair + is only none or one character, so this would not work.
But what do the access und error log tell?

Quote:
RewriteRule ^.*$ index.php [L,R]
And you have to make sure that Allow Override contains "FileInfo" for the directory you place the .htaccess in.

Last edited by Ben; 2nd November 2008 at 20:16.
Reply With Quote
The Following User Says Thank You to Ben For This Useful Post:
bjarne-j (3rd November 2008)
  #3  
Old 3rd November 2008, 22:47
bjarne-j bjarne-j is offline
Junior Member
 
Join Date: Apr 2008
Posts: 17
Thanks: 5
Thanked 0 Times in 0 Posts
 
Default

Well, I got it to work. By editing the apache2.conf
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Installation -- pcre_exec.c:403: internal compiler error: Segmentation fault zerman Installation/Configuration 2 23rd September 2008 23:58
PHP install problem SgtM Installation/Configuration 6 7th April 2007 17:45
ERROR: The PHP binary coming with ISPConfig does not work properly on your system! micko_escalade Installation/Configuration 35 30th March 2007 11:31
Fedora Core 6 install issues moos3 Installation/Configuration 10 22nd March 2007 18:25
Another ERROR: The PHP binary coming with ISPConfig does not work properly on your sy hoopsx3 Installation/Configuration 2 29th January 2007 07:56


All times are GMT +2. The time now is 18:01.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.