Project

General

Profile

Actions

Bug #189

closed

Mambo CMS: Search Engine Friendly URLs: mod_Rewrite

Added by Anonymous over 18 years ago. Updated over 15 years ago.

Status:
Invalid
Priority:
Low
Category:
mod_rewrite
Target version:
-
ASK QUESTIONS IN Forums:

Description

Mambo CMS have a friendly URL feature that can be activated via the following Apache's setting:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php

How do we simulate the above setting on lighttpd mod_rewrite?

Regards,

Joe.

-- joelee


Files

htaccess.txt (562 Bytes) htaccess.txt Apache mod_rewrite settings on a dot HTAccess file. -- joelee Anonymous, 2005-08-02 13:05
Actions #1

Updated by Anonymous over 18 years ago

Hi,

Just wondered if I could run Mambo with search-engine friendly urls without access to the mod_rewrite or htaccess files?

Thanks for your help.

Cheers,

Tracy

-- cyberguin

Actions #2

Updated by Anonymous over 18 years ago

Hi Tracy,

I found a way to do that by pointing the 404 error handler to Mambo's index.php in lighttpd.conf :

$HTTP[[host]] == "www.example.com" {
server.error-handler-404 = "/index.php"
}

I have never managed to get lighttpd's rewrite module to work yet.

Regards,

Joe.

-- joelee

Actions #3

Updated by Anonymous over 17 years ago

For the record this issue applies to Drupal too. Their recommended solution r1 is a hack, which depends on non-file URLs not containing dots.

A custom 404 is not considered a happy solution because
- speed of execution compared to compiled code
- it's never going to be as reliable as the proper webserver in returning appropriate HTTP status codes: it's basically a hack

r1 http://drupal.org/node/43782

Actions #4

Updated by Anonymous over 17 years ago

My mistake: Lighttpd 4.1.12+ with mod_magnet and lua seems to be able to handle this. Therefore this issue could be closed.
http://trac.lighttpd.net/trac/wiki/Docs%3AModMagnet#complex-rewrites

Replying to anonymous:

For the record this issue applies to Drupal too. Their recommended solution r1 is a hack, which depends on non-file URLs not containing dots.

A custom 404 is not considered a happy solution because
- speed of execution compared to compiled code
- it's never going to be as reliable as the proper webserver in returning appropriate HTTP status codes: it's basically a hack

r1 http://drupal.org/node/43782

Actions #5

Updated by darix over 17 years ago

mod_magnet can easily do that for you: see my cleanurl.lua at http://pixel.global-banlist.de/
i already prepared a drupal.lua, but had no time to test it. and the user who got the file from me didnt report back either.

Actions #6

Updated by stbuehler about 16 years ago

  • Status changed from New to Fixed
  • Resolution set to invalid

And btw: the bug tracker is not a support forum.

Actions #7

Updated by stbuehler over 15 years ago

  • Status changed from Fixed to Invalid
Actions

Also available in: Atom