mod_rewrite help again

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

mod_rewrite help again

Post 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?
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply