Re: [PHP] mod rewrite

2010-01-02 Thread LinuxManMikeC
On Sat, Jan 2, 2010 at 12:52 AM, Sudhakar wrote: > hi > > i am using a cms which requires mod_rewrite to be enabled for seo urls > > in the wamp that i use in my local machine in the httpd.conf file i have > this line and removed the comment > LoadModule rewrite_module modules/mod_rewrite.so > > w

Re: [PHP] Mod Rewrite help

2005-03-28 Thread Eli
Brian Dunning wrote: How would I mod_rewrite a request for /baseball.htm into /query.php?q=baseball? This should be doing it as far as I can tell, but for some reason it's not... RewriteEngine on RewriteRule /^(.+).htm$ /query.php?q=$1 RewriteEngine on RewriteRule ^/(.+)\.htm$ /query.php?q=$1 Bu

Re: [PHP] Mod Rewrite help

2005-03-21 Thread Jochem Maas
Mikey wrote: RewriteEngine on RewriteRule /^(.+).htm$ /query.php?q=$1 ^-- this slash looks to me like its in the wrong place. AFAIK you should have that space at the end of your regex after the $ HTH, Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

RE: [PHP] Mod Rewrite help

2005-03-21 Thread Mikey
> RewriteEngine on > RewriteRule /^(.+).htm$ /query.php?q=$1 AFAIK you should have that space at the end of your regex after the $ HTH, Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Mod Rewrite help

2005-03-21 Thread Brian Dunning
How would I mod_rewrite a request for /baseball.htm into /query.php?q=baseball? This should be doing it as far as I can tell, but for some reason it's not... RewriteEngine on RewriteRule /^(.+).htm$ /query.php?q=$1 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://ww

Re: [PHP] Mod Rewrite help

2005-03-21 Thread Richard Davey
Hello Brian, Monday, March 21, 2005, 6:05:59 PM, you wrote: BD> I know this isn't exactly a PHP question, but it's for a PHP site if BD> that helps :) :) BD> How would I mod_rewrite a request for /baseball.htm into BD> /query.php?q=baseball? Definitely more than one way to skin this cat,

Re: [PHP] mod-rewrite

2004-10-17 Thread John Nichel
M Saleh EG wrote: Yes it does! It aint off topic. Pate is trying to figure out how to integrate mod_rewrite functionality with his PHP scripts. Ah well, I should just ask a question or two about how to integrate mod_perl functionality then, eh? It's as offtopic as MySQL, JavaScript, etc questio

Re: [PHP] mod-rewrite

2004-10-17 Thread M Saleh EG
Yes it does! It aint off topic. Pate is trying to figure out how to integrate mod_rewrite functionality with his PHP scripts. If you're new to mod_rewrite then you can use this alternative PHP script that does the work for u. Here you go: http://www.zend.com/codex.php?id=674&single=1 On Sun,

Re: [PHP] mod-rewrite

2004-10-17 Thread John Nichel
Pete wrote: I have just started using mod-rewrite, and have two questions... And neither one of them have anything to do with PHP. -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mod rewrite urls

2004-08-12 Thread John Nichel
Jason Wong wrote: On Thursday 12 August 2004 21:37, John Nichel wrote: Jay Blanchard wrote: a. Have you sent this to an Apache list? 2. I just almost cannot bring myself to say it, but this relates to PHP how? Didn't you get the memo? To be PC, we now have to answer all questions releated to php

Re: [PHP] mod rewrite urls

2004-08-12 Thread Jason Wong
On Thursday 12 August 2004 21:37, John Nichel wrote: > Jay Blanchard wrote: > > > > a. Have you sent this to an Apache list? > > 2. I just almost cannot bring myself to say it, but this relates to PHP > > how? > > Didn't you get the memo? To be PC, we now have to answer all questions > releated t

Re: [PHP] mod rewrite urls

2004-08-12 Thread John Nichel
Jay Blanchard wrote: a. Have you sent this to an Apache list? 2. I just almost cannot bring myself to say it, but this relates to PHP how? Didn't you get the memo? To be PC, we now have to answer all questions releated to php or not. ;) -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAI

Re: [PHP] mod rewrite urls

2004-08-12 Thread raditha dissanayake
Jay Blanchard wrote: 2. I just almost cannot bring myself to say it, but this relates to PHP how? oh boy, you are going to get a heap of hate mail for saying that. -- Raditha Dissanayake. http://www.radinks.com/sftp/

RE: [PHP] mod rewrite urls

2004-08-12 Thread Jay Blanchard
[snip] struggling with the following: I have an URL www.mycompany.com/index.php?id=10&a=1&b=2&c=3 What I want to do is using mod_rewrite have www.mycompany.com/10/?a=1&b=2&c=3 Have tried the following rewrite rules in .htaccess RewriteEngine on RewriteCond%{REQUEST_FILENAME} !-d Rewrite

RE: [PHP] mod rewrite urls

2004-08-12 Thread Ed Lazor
It might be easier to do something like ForceType application/x-httpd-php Then you could have your url http://mycompany.com/view/10/?a=1&b=2&c=3 You can do the same thing with / but the scope ends up pretty big and creates a lot of extra unnecessary processing. -Ed > -Original Messa