I´m a newbie in using mod_rewrite. I just use it for rewriting site.tld/page to site.tld/index.php?document=page ... simple
But I have problems with ending slash, so when somebody try to go to site.tld/page/ it shows error. I´ve tried many examples I had seen, but anyone works ... And Im also trying to redirect dynamic addresses to static ones ... also no success... could you help me, please?
my .htaccess looks like this:
- Code: Select all
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^([-a-z0-9_]+)/?$ %{DOCUMENT_ROOT}/index.php?document=$1 [NC,L]