Hi again
Sorry for the slow answer, i have not figured out how to get xoops.org to send me an email when someone posts in this thread, so sometimes it take some time before i visit the site.
'My next question I guess is, how do (or can) you change it from being domain.com/news/ (with the last slash) to domain.com/news (without the lash)?'
This is easy :)
Instead of:
RewriteRule ^shortcut/$ /modules/veryLongUrl/index.php [L]
use:
RewriteRule ^shortcut$ /modules/veryLongUrl/index.php [L]
the first part after 'RewriteRule '^shortcut$'
Is a regular expression telling mod_rewrite the following:
^ means start of line (which is actually after the part in 'RewriteBase' from earlier in the .htaccess file)
shortcut means look for 'shortcut'
$ means end of line
So mod_rewrite looks for a line containing nothing more than 'shortcut' which with url and everything is 'http://www.mydomain.com/shortcut' where the 'http://www.mydomain.com/' is defined by '/' in the rewritebase part of the .htaccess file.
So when you have a rewrite rule like this:
RewriteRule ^shortcut/$ /modules/veryLongUrl/index.php [L]
It means a line containing 'shortcut/'
If you have:
RewriteRule ^shortcut/.*$ /modules/veryLongUrl/index.php [L]
It means a line starting with 'shortcut/' followed by anything, so these following will work
shortcut/
shortcut/blabla
shortcut/dir1/dir2/dir3/fjfjfkajdhfkljsdfhglsdfg
Hope it makeas a little bit of sence, sort of hard for me to explain (not english by nature)
If not just ask.