Hi,
just wondered if anyone could help me out with this small .htaccess problem and using mod_rewrite?
Basically I already have a working .htaccess file but I wondered if there was a way of writing a generic rule for what I have rather than writing a rule for every page of my site in my .htaccess. Here's what I mean...
----------------------------------------------------
(1.) Here's the current rule for a page on my site:
(2.) And here's the current rule for a particular section of a page:
Could this be made generic with one single rule for each?
----------------------------------------------------
Also if someone uses a trailing slash for any page of my site such as:
it gives an error - is there anyway of properly interpreting this in the same way:
is properly understood?
----------------------------------------------------
Thanks. Jonathan.
just wondered if anyone could help me out with this small .htaccess problem and using mod_rewrite?
Basically I already have a working .htaccess file but I wondered if there was a way of writing a generic rule for what I have rather than writing a rule for every page of my site in my .htaccess. Here's what I mean...
----------------------------------------------------
(1.) Here's the current rule for a page on my site:
Code:
RewriteRule ^corporate_training$ 14_corporate_training.php
(2.) And here's the current rule for a particular section of a page:
Code:
RewriteRule ^corporate_training/anger_management$ 14_corporate_training.php?course=anger_management
Could this be made generic with one single rule for each?
----------------------------------------------------
Also if someone uses a trailing slash for any page of my site such as:
it gives an error - is there anyway of properly interpreting this in the same way:
is properly understood?
----------------------------------------------------
Thanks. Jonathan.