2
Hi there
I have this in my .htaccess file: (i added comments for this example, coments starts with -- remove before adding to your own .htaccess)
RewriteEngine On
RewriteBase /
--This line makes it possible to write:
--www.domain.com/article/17
--instead of
--www.domain.com/fsArticle/index.php?articleid=17
RewriteRule ^article/([0-9]+)$ /modules/fsArticle/index.php?articleid=$1 [L]
--This line makes it possible to write (search engine optimization):
--www.domain.com/article/17/This_Is_a_very_LOOOOOONG_URL
RewriteRule ^article/([0-9]+)/.*$ /modules/fsArticle/index.php?articleid=$1 [L]
--this is the same just for categories.
RewriteRule ^category/([0-9]+)$ /modules/fsArticle/index.php?categoryid=$1 [L]
I also had to change 1 line in includes/common.php
from:
$xoopsRequestUri = $_SERVER[ 'REQUEST_URI' ]; // Deprecated (use the corrected $_SERVER variable now)
to:
$xoopsRequestUri = $_SERVER[ 'SCRIPT_NAME' ];
I have no clue why they did not do this per default in the core ?
But at least it works.
You can see it in action here:
http://www.xray-mag.com/index.phpI hope it helps, else just write again.
I think your solution would be something like:
RewriteRule ^teachers/([0-9]+).html$ /modules/tinycontent1/index.php?ID=12$1 [L]
Best regards
Søren Reinke