The site runs on WordPress (latest) and is installed in /htdocs/www/
.
This htaccess file is in /htdocs/www/roh/
along with a bunch of images and some CSS.
I want requests to the old html files to redirect to their new WordPress pages. I got most of it working, except the example below.
RewriteEngine On
RewriteBase /htdocs/www
ErrorDocument 404 /htdocs/www/
Redirect /roh/z1/q2lvl[1-9].html http://www.example.com/realms-of-hyrule/legend-of-zelda/maps
I go to www.example.com/roh/z1/q2lvl2.html
, and it 404s and takes me to the main 404 page in my WordPress theme.
I tried ErrorDocument 404 /htdocs/www/roh/404.html
, but that just got me an ISP redirected spam search page. The only way I got the main WordPress 404 page working was by going up directories until something worked. I do not want to send 404s to an http://
address.
My questions:
Why doesn't the range of numbers
[1-9]
work?Why can't I get
/htdocs/www/roh/404.html
working for anything in/roh
and below?
Sorry for the basic questions, not exactly sure what to search for, so Google is only giving me examples I've tried or have working already.