Internal Rewrite

Discuss practical ways rearrange URLs using mod_rewrite.

Postby Highwire » Sun Dec 02, 2001 7:33 pm

I would like to perform an internal rewrite using .htaccess in order to prevent users from knowing what they are accessing. I want the Apache server to internally rewrite a.html to b.html without the user or browser knowing that this has occurred. The section on internal rewrites doesn't help me. I get an Internal Server error upon trying to access a.html or b.html, after uploading .htaccess into /stats/
RewriteEngine on
RewriteBase /stats/
RewriteRule ^a.html$ b.html
Note: "...prevent users from knowing what they are accessing" in order to hide the .cgi parameters to prevent users from accessing information in any other way but through this rewrite.

Posts: 1
Joined: Sat Dec 01, 2001 4:00 pm

Postby Brett » Fri Dec 07, 2001 6:10 pm

I tried uploading your code to an account on the server, and it worked exactly as you intended.

Perhaps your host does not support mod_rewrite.
Posts: 82
Joined: Tue Jul 10, 2001 4:00 pm

Return to Friendly URLs with Mod_Rewrite

Who is online

Users browsing this forum: No registered users and 2 guests