SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
-
Dec 5, 2008, 07:55 #1
mod rewrite not working in online server
we have htaccess file as this
RewriteEngine On
RewriteBase /new
RewriteRule ^.*/.*-news([0-9]+)\.html$ http://www.xyz.com/new/news.php?news_id=$1
RewriteRule ^.*/.*-article([0-9]+)\.html$ http://www.xyz.net/new/article.php?article_id=$1 [L]
This works fine in localhost..
in online server...
after mod rewrite..(then we click on rewritten html link) it is again directed to php page ie news/news.php?news_idp=1
i think the mod rewrite is on in server as html redirect is not failing...
so where can be problem...please help
-
Dec 5, 2008, 08:52 #2
- Join Date
- Mar 2006
- Location
- Canada
- Posts
- 56
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
what server are you using ?
maybe it's IIS ?
-
Dec 5, 2008, 09:33 #3
Bookmarks