RewriteEngine On
RewriteRule ^admin/([^/]*)/([^/]*)$ /admin/2.php?mode=$1&id=$2 [L]
RewriteRule ^([^/\.]+)/?$ /display.php?page=$1 [L]
RewriteRule ^([^/]*)/([^/]*)$ /display.php?group=$1&page=$2 [L]

I need some help with my .htaccess file.

The bottom 2 rewrite rules work perfectly however the first one is causing issues.

Basically the last 2 rules work like this:
domain.com/page
domain.com/group/page

I need the first rewrite rule to work like this:
domain.com/admin/module/1
This would check admin/2.php?module=module&id=1

The first htaccess rule is causing the whole .htaccess file not to work at the moment.

Kind regards,
Zack.

Try escaping your forward-slashes and removing the *s. RewriteRule ^admin\/([^/])\/([^/])$ /admin/2.php?mode=$1&id=$2 [L]

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.