FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


[SOLVED] Using mod_rewrite.





Marston
I have this bit of mod_rewrite code in my .htaccess file, and it's supposed to basically foreward you from /news/DESC/time/0/ to news.php?article=0&order=DESC&mode=time... but for some reason it's only forewarding to news.php. Here's the code:
Code:
RewriteEngine on
RewriteRule ^news/([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/?$ news.php?article=$3&order=$2&mode=$1
Marston
No help? (Yeah, Ok, this is a poorly veiled bump...)
Simulator
Hope this helps you:

http://www.workingwith.me.uk/articles/scripting/mod_rewrite/
Marston
Yep, Thanks.
Related topics
redirecting domain to directory & directadmin - how?
Dynamical websites and search engines
htaccess
About the file names...
URL Cloaking / mod_rewrite advice needed
htaccess: virtual forwarding?
two domains to one
need help with mod_rewrite rules
mod_rewrite help
Maths problem
Save as .html or .php
Making buttons in Flash CS4
Quran and creation
"site/page" DIFFERENT from "site/page/"?
This topic is locked: you cannot edit posts or make replies.    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.