divinequran Posted September 28, 2009 Share Posted September 28, 2009 Hi, The mod rewrite rule works perfectly. But the option L does not hides the rewite rule it just prints as it is. http://www.divinequran.com/koran/1-Al-Fatiha.html It has to display the above url in the address bar, Instead of it displays the rewrite code as it is. Please help it is very urgent. Quote Link to comment https://forums.phpfreaks.com/topic/175758-mod-rewrite-option-l-does-not-works/ Share on other sites More sharing options...
corbin Posted September 28, 2009 Share Posted September 28, 2009 Errrr..... Can we see your rewrite rules? Quote Link to comment https://forums.phpfreaks.com/topic/175758-mod-rewrite-option-l-does-not-works/#findComment-926202 Share on other sites More sharing options...
divinequran Posted October 12, 2009 Author Share Posted October 12, 2009 Options +Indexes +FollowSymLinks RewriteEngine on RewriteBase / RewriteCond %{REQUEST_URI} ^/(.*).html RewriteRule ^(.*).html http://www.divinequran.com/koran/quran.php?name=$1 [L] I have tried using with RewriteBase and without RewriteBase, both din't work on the server. If it is a server issue then what could be the reason? Quote Link to comment https://forums.phpfreaks.com/topic/175758-mod-rewrite-option-l-does-not-works/#findComment-935455 Share on other sites More sharing options...
corbin Posted October 12, 2009 Share Posted October 12, 2009 When ever you use a full path, unless you're using mod_proxy, the request is just forwarded with a 301 request. Is it the host on the same domain? If so, just use /koran/.... instead of http://..../koran/.... Quote Link to comment https://forums.phpfreaks.com/topic/175758-mod-rewrite-option-l-does-not-works/#findComment-935742 Share on other sites More sharing options...
divinequran Posted October 13, 2009 Author Share Posted October 13, 2009 Hi, Thanks, thanks a lot.. really it worked guru. So if I install mod_proxy will it will work with full path? Quote Link to comment https://forums.phpfreaks.com/topic/175758-mod-rewrite-option-l-does-not-works/#findComment-936105 Share on other sites More sharing options...
divinequran Posted October 14, 2009 Author Share Posted October 14, 2009 hi, My server does support mod_proxy, It has the following entries. LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_connect_module modules/mod_proxy_connect.so LoadModule proxy_ftp_module modules/mod_proxy_ftp.so LoadModule proxy_http_module modules/mod_proxy_http.so LoadModule proxy_ajp_module modules/mod_proxy_ajp.so LoadModule proxy_balancer_module modules/mod_proxy_balancer.so entries in it httpd.conf. so the required modules are enabled. Quote Link to comment https://forums.phpfreaks.com/topic/175758-mod-rewrite-option-l-does-not-works/#findComment-936704 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.