1

RewriteRule without using the domain name

view story
linux-howto

http://serverfault.com – I currently use a RewriteRule to direct all traffic to a index.php file which then decides which page to serve. The current rule works fine and looks like this: RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] RewriteRule ^.*$ index.php [NC,L] This means if I go to the following URL, the correct page will be displayed: http://www.mydomain.com/main/index/1/basic/0/0/date/14/0/0/20/0/0/0/0/0/0/0 My problem: I'd like to be able to add the link /teaching-and-training/20 to my page which should redir (HowTos)