Jump to content

Mod Rewrite - help!


Demio

Recommended Posts

I'm currently using apache 2.0 in my server and I want to make a mod_rewrite rule so that anything that goes to /articles/stuff is redirected to articles.php?codename=stuff but I'm having a hard time.

This is my htaccess file:

[code]RewriteEngine on
RewriteRule ^/articles/([^/.]+)/?$ /articles.php?codename=$1  [L]
RewriteRule ^/([^/\.]+)/?$ $1.php [L][/code]

Can someone point me to the right way? :D
Link to comment
https://forums.phpfreaks.com/topic/17420-mod-rewrite-help/
Share on other sites

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.