Jump to content

Trying to get started with .htaccess and mod rewrite, having problems


Recommended Posts

I'm trying to get into .htaccess more and start out mod rewrite, but I'm having a lot of issues.

 

Currently, I'm trying to redirect the user from a flat directory (/ex/am/ple/) to a page that has GET parameters (index.php?page=whatever). So, if someone goes to visitor/page/welcome on my site, I want them to be redirected to visitor/index.php?page=welcome.

 

Here's what I have right now:

Options +FollowSymlinks
RewriteEngine on

RewriteRule ^/visitor/page/(.+) /visitor/index.php?page=$1

 

However, I get a 404 error when trying to access a flat directory (because it doesn't exist).

 

Any clues are appreciated.

 

Thanks.

Blake

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.