Page 1 of 1

mod_rewrite help again

Posted: Mon Nov 14, 2005 3:30 pm
by pickle
Hi all,

Mod rewrite is giving me trouble on my Novell server.

I want the page a user access to be redirected, without the URL changing. For example, if a user asks for http://www.domain.ca/events/jan.html, I want to serve up the page http://www.domain.ca/A/events.jan.html. I want that to be invisible to the user.

The .htaccess file I've got now is:

Code: Select all

Options +FollowSymlinks
RewriteEngine on

RewriteRule (.*) /A/$1
With that, I get an error code (500) internal server error. When I change the file to

Code: Select all

Options +FollowSymlinks
RewriteEngine on

RewriteRule (.*) index_orig.html
It works just fine. It seems to me that the problem is with the fact that I'm wanting to go to /[somedirectory]/[somefilename] rather than just [somefilename]

Any ideas?