Forum Moderators: phranque
[domain.com...]
and the 1 goes up to a max of 900.php
Can someone provide the htaccess expression to redirect any pages that came in using the old url to htt://www.domain.com/subject/
Working on it myself, but I had assumed I had the expression all set...and moved it over to the live server. Since everything else is running perfectly, am just going to leave it until I get the htaccess as intended.
Here's what I have so far:
Redirect 301 ^(.*)/([^/.]+)\.php$ [domain.com...]
As always, appreciate the help! :)
David
RewriteRule ^(.*)/([^/.]+)\.php$ [domain.com...] [R=301,L]
and that seems to be working, have a different issue but I'm going to work on it before I bring it up here :)
You should make your pattern(s) as specific as possible in order to improve efficiency.
To match a one-to-three digit number, the regex is [0-9]{1,3}
Jim