![]() |
Problems with my mod rewrite
Hi,
I am trying to make my user to redirect when they go to a certain directory. Eg when the url is : http://simpg.net/info/learnturkish or http://www.simpg.net/info/learnturkish The redirection should go to : http://simpg.net/info.php?a=learnturkish If have tried the following. Code:
RewriteCond %{HTTP_HOST} simpg.net [NC]It seems that the "learnturkish" is not getting passed. What have I done wrong ? Thanks. |
this is the rule i have:
Code:
|
Hi,
I have tried another 2 options but I can not seem to get this working :( I would like : 1.mbpg.net and mbpg.net/coupons/1 to get redirected to : http://mbpg.net/coupon.php?a=1 So I have tried these. Code:
RewriteCond %{HTTP_HOST} ^([^.]+).mbpg.net [NC]Thanks. . |
Not sure why this is in the PHP section since it has nothing to do with PHP. Moving to apache configurations.
Can you get any mod_rewrite to work? Use this for your rewrite engine to verify: Code:
RewriteEngine On |
Hi,
Thanks for helping out. I tried what you suggested. Here is my .htaccess file: Code:
Options +FollowSymLinks http://www.mbpg.net/coupons/1 Quote:
http://www.mbpg.net/coupon.php?a=1 I get my test page come up. So looks like this redirect isn't working. Redirects on other sites on this server are working OK There must be something I have done wrong ?? . |
How did I end up with not all chars.
Try with *only* this: RewriteRule coupons/(.+)$ coupon.php?a=$1 [NC,QSA,L] and the rewrite engine enabling. If that still doesn't work with coupons/x, then you cannot use rewrite. |
| All times are GMT +1. The time now is 05:06 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.