- Messages
- 4,467
- Reaction score
- 95
- Points
- 0
I have a piece of code to rewrite pages from "/page/page_name" to "/index.php?page=page_name", but I get a 404 error instead:
Code:
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
## some other www and /index.php to / redirection
## Page name redirect
RewriteRule ^page/[a-zA-Z0-9_]* ^/index.php?page=$1