|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome. |
Share Thread: & Tags
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi all,
I have the following rules in my .htaccess file. RewriteEngine on RewriteRule ^Article/([^/]+)/([0-9]+)?$ /Article.php?Chief=$1&ArticleID=$2 [R,L] RewriteRule ^Catagory/([^/]+)/([^/]+)?$ /Catagory.php?Chief=$1&Catagory=$2 [R,L] RewriteRule ^SubCatagory/([^/]+)/([^/]+)/([^/]+)?$ /Articles.php?Chief=$1&Catagory=$2&SubCatagory=$3 [R,L] RewriteRule ^([^/]+)/Homepage.html$ /MainPage.php?Chief=$1 [R,L] still passing either of these doesn't work: http://www.chiefos.com/Article/Deadman/2 http://www.chiefos.com/Catagory/Deadman/Music Any thoughts? Chris.
__________________
Clearlime - leeds,west yorkshire web design |
|
|||
|
It appears you're trying to do relative URLs in the rewrite rule. The right side of the rule needs to be the full URL, as follows:
Code:
RewriteEngine On RewriteRule Article/([^/]+)/([0-9]+)?$ http://www.chiefos.com/Article.php?Chief=$1&ArticleID=$2 [R,L] Brian.
__________________
ToolBarn.com, an Internet Retailer Top 500 and Inc. 500 Company | Tool Parts | Pet Supplies |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |