Olaf Doschke
Programmer
The general URL schema of a site is
So I made these Rewrite Rules via .htaccess in the dir which is mapped to the dev.domain.com subdomain.
It works with one slight quirk:
Specifying just without slash in a browser the URL rewrite gets (partially) visible in the browser URL field as This does not happen when the URL entered into the browser is with the final slash.
This is not browser dependent, so it should be apache.
The same behaviour does not happen with vs . In that case the third rewrite rule is triggered and the parameterization does not get visible.
What's going on here? And could these rewrite rules perhaps be simplified into one rule only?
Bye, Olaf.
So I made these Rewrite Rules via .htaccess in the dir which is mapped to the dev.domain.com subdomain.
Code:
RewriteEngine On # Turn on the rewriting engine
RewriteRule ^$ controller.php [NC,L] #handle requests into the root domain
RewriteRule ^([a-z]+)/?$ controller.php?lang=$1 [NC,L] #handle requests with specified language
RewriteRule ^([a-z]+)/([a-z]+)/?$ controller.php?lang=$1&detail=$2 [NC,L] #handle requests with specified language and detail page
It works with one slight quirk:
Specifying just without slash in a browser the URL rewrite gets (partially) visible in the browser URL field as This does not happen when the URL entered into the browser is with the final slash.
This is not browser dependent, so it should be apache.
The same behaviour does not happen with vs . In that case the third rewrite rule is triggered and the parameterization does not get visible.
What's going on here? And could these rewrite rules perhaps be simplified into one rule only?
Bye, Olaf.