HighDots Forums  

mod_rewrite

Search Engine Optimization Discussion about SEO/Search Engine Optimization (alt.internet.search-engines)


Discuss mod_rewrite in the Search Engine Optimization forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Fikkie
 
Posts: n/a

Default mod_rewrite - 07-06-2006 , 01:04 PM






RewriteEngine On
RewriteCond %{HTTP_HOST} ^sub\.domain\.nl\/zoek.pl\?query\=(.*)$
RewriteRule (.*) http://sub.domain.nl/zoek.php?query=$1 [R=301,L]

I tryed again some variants but it doesn't look like apache rewriting
and me are going to be a team

What am i doing wrong?


Reply With Quote
  #2  
Old   
John Bokma
 
Posts: n/a

Default Re: mod_rewrite - 07-06-2006 , 01:23 PM






"Fikkie" <pascal.beyens (AT) gmail (DOT) com> wrote:

Quote:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^sub\.domain\.nl\/zoek.pl\?query\=(.*)$
RewriteRule (.*) http://sub.domain.nl/zoek.php?query=$1 [R=301,L]

I tryed again some variants but it doesn't look like apache rewriting
and me are going to be a team
Afaik, the qs can be left out of the equation, ie:

RewriteCond %{HTTP_HOST} ^sub\.domain\.nl\/zoek.pl$
RewriteRule (.*) http://sub.domain.nl/zoek.php [R=301,L]

If that doesn't work, try:

RewriteCond %{HTTP_HOST} ^sub\.domain\.nl\/zoek.pl(.*)$
RewriteRule (.*) http://sub.domain.nl/zoek.php$1 [R=301,L]


--
John Freelance Perl programmer: http://castleamber.com/

Quick Bookmarks:http://johnbokma.com/firefox/quick-l...bookmarks.html


Reply With Quote
  #3  
Old   
Fikkie
 
Posts: n/a

Default Re: mod_rewrite - 07-06-2006 , 01:34 PM




John Bokma schreef:

Quote:
"Fikkie" <pascal.beyens (AT) gmail (DOT) com> wrote:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^sub\.domain\.nl\/zoek.pl\?query\=(.*)$
RewriteRule (.*) http://sub.domain.nl/zoek.php?query=$1 [R=301,L]

I tryed again some variants but it doesn't look like apache rewriting
and me are going to be a team

Afaik, the qs can be left out of the equation, ie:

RewriteCond %{HTTP_HOST} ^sub\.domain\.nl\/zoek.pl$
RewriteRule (.*) http://sub.domain.nl/zoek.php [R=301,L]

If that doesn't work, try:

RewriteCond %{HTTP_HOST} ^sub\.domain\.nl\/zoek.pl(.*)$
RewriteRule (.*) http://sub.domain.nl/zoek.php$1 [R=301,L]


--
John Freelance Perl programmer: http://castleamber.com/

Quick Bookmarks:http://johnbokma.com/firefox/quick-l...bookmarks.html
No the "?query=" has to be included because zoek.pl?User= still has to
be reached through the .pl version.

Nothing works ... Does it have some time needed to do the rewrite? Some
minuts before the rule gets active?



Reply With Quote
  #4  
Old   
Borek
 
Posts: n/a

Default Re: mod_rewrite - 07-06-2006 , 02:46 PM



On Thu, 06 Jul 2006 19:34:49 +0200, Fikkie <pascal.beyens (AT) gmail (DOT) com> wrote:

Quote:
Nothing works ... Does it have some time needed to do the rewrite? Some
minuts before the rule gets active?
Should work immediately.

Are you sure that mod_rewrite works at all?

Best,
Borek
--
http://www.chembuddy.com
http://www.ph-meter.info/pH-measurements-indicators
http://www.terapia-kregoslupa.waw.pl


Reply With Quote
  #5  
Old   
John Bokma
 
Posts: n/a

Default Re: mod_rewrite - 07-06-2006 , 03:05 PM



"Fikkie" <pascal.beyens (AT) gmail (DOT) com> wrote:

Quote:
Nothing works ... Does it have some time needed to do the rewrite? Some
minuts before the rule gets active?
Make sure you really make your browser refresh/reload. It can indeed be
frustrating :-)

--
John Experienced (web) developer: http://castleamber.com/

Perl RSS Builder: http://johnbokma.com/perl/rss-web-feed-builder.html


Reply With Quote
  #6  
Old   
Fikkie
 
Posts: n/a

Default Re: mod_rewrite - 07-06-2006 , 05:21 PM




Borek schreef:

Quote:
On Thu, 06 Jul 2006 19:34:49 +0200, Fikkie <pascal.beyens (AT) gmail (DOT) com> wrote:

Nothing works ... Does it have some time needed to do the rewrite? Some
minuts before the rule gets active?

Should work immediately.

Are you sure that mod_rewrite works at all?

Best,
Borek
--
http://www.chembuddy.com
http://www.ph-meter.info/pH-measurements-indicators
http://www.terapia-kregoslupa.waw.pl
My .htaccess :
RewriteEngine On
RewriteCond %{HTTP_HOST} !^zoeken\.domein\.nl$
RewriteRule (.*) http://zoeken.domein.nl/$1 [R=301,L]

RewriteCond %{HTTP_HOST} ^zoeken\.domein\.nl\/zoek.pl?Terms=$
RewriteRule (.*) http://zoeken.domein.nl/zoek.php?Terms=$1 [R=301,L]



Reply With Quote
  #7  
Old   
Big Bill
 
Posts: n/a

Default Re: mod_rewrite - 07-06-2006 , 06:35 PM



On 6 Jul 2006 19:05:32 GMT, John Bokma <john (AT) castleamber (DOT) com> wrote:

Quote:
"Fikkie" <pascal.beyens (AT) gmail (DOT) com> wrote:

Nothing works ... Does it have some time needed to do the rewrite? Some
minuts before the rule gets active?

Make sure you really make your browser refresh/reload. It can indeed be
frustrating :-)
Delete temp files also.

BB
--

http://www.kruse.co.uk/seo-services.htm
http://www.crystal-liaison.com/baby-gund/index.html
http://www.here-be-posters.co.uk/jul...et-posters.htm


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.