janus76 wrote:
...
so i
thought a htaccess file would be a simple way to manage and keep some of the
old links working (by redirecting)
Am I going about this wrong way? is there a different way?
Doing rewrites in a .htaccess file is not the most efficient way, if you
have access to the server configuration.
By doing a rewrite in a .htaccess file, you basically force Apache to
completely resolve the path to the directory a first time, then throw
everything away and start all over again. For each access.
Put your rewrite rules in the server (or VHost) configuration if you
can. Use .htaccess only if you are not allowed to modify the server
config files.
In addition, in your case I don't think it even makes sense to put them
in .htaccess, because it means your new server will have to duplicate
the file structure of the old one, just to put a .htaccess in each of
the old directories to send it somewhere else.
About picking up data from what is after the "?" in your URL : that is
part of the QUERY_STRING, not really of the URL. You need to do
something special for that. Check the on-line mod_rewrite documentation.
It is specially mentioned there.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
" from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org