Support Tickets - Rewrite or Pretty URL's

Rewrite or Pretty URL's

HelpDesk 04.12.2016 2315 Support Status: Closed Solution: Yes timschulte


I turned Pretty URL's on but all it does is come up with errors.

Not Found

The requested URL /faq was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

.htaccess

======================

RewriteEngine ON

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]

ErrorDocument 404 /404/

======================

and I have

define('JAK_USE_APACHE', 1);

Replies (3)

  • avatar Jerome

    Please make sure the mod rewrite module is loaded and functional.

    Also no empty line on the bottom of your htaccess file.

    // Mod rewrite
    define('JAK_MODREWRITE', 1); // Use 1 for Apache (SEO URL's) or 0 for all others

    Your db.php file seems to be ok, your htaccess file (please remove the last empty line) otherwise OK. Mod Rewrite is enabled but maybe not working correctly.

    04.12.2016 0
  • avatar timschulte

    I'm using .htaccess to rewrite other domains on this same server, but apparently sometimes multiview messes up mod_rewrite so you have to -multiviews in your options under apache :)

    Thanks!

    04.12.2016 0
  • avatar Jerome

    Thank you for the feedback.

    *** Ticket closed ***

    04.12.2016 0