Current location: Hot Scripts Forums » Other Discussions » Web Servers » Rewriting newbie


Rewriting newbie

Reply
  #1 (permalink)  
Old 05-25-09, 05:13 PM
gjfortin gjfortin is offline
New Member
 
Join Date: Nov 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rewriting newbie

Hi,

I need to rewrite urls. Some are dynamic and others are static.

I write an .htacess file and I upload this file in the concert folder. But nothing works.

I would like to change dynamic urls like this one:
http://www.thesite.com/00_AN/03_Cata...p?ItemSelect=6
redirect to:
http://www.thesite.com/00_AN/03_Catalogue/product.php

and static pages like:
http://www.thesite.com/00_AN/03_Cata...d-product.html
redirect to:
http://www.thesite.com/00_AN/03_Cata...ew-product.php

.htaccess file is in /03_Catalogue/

Here are the rules that I write:

RewriteEngine on
RewriteCond %{QUERY_STRING} ^ItemSelect=6$
RewriteRule ^/catalogue_technical.php$ http://www.thesite.com/00_AN/03_Catalogue/product.php? [L,R=301]

RewriteCond %{QUERY_STRING} ^ItemSelect=12$
RewriteRule ^/catalogue_technical.php$ http://www.thesite.com/00_AN/03_Cata...w-product.php? [L,R=301]

redirect 301 /catalogue_technical.html http://www.southlandboat.com/00_AN/0.../catalogue.php

redirect 301 /catalogue_technical-item.html http://www.southlandboat.com/00_AN/0...logue/item.php

Nothing works. I do not know if I can write an .htaccess file with dynamic and static pages in the same file.

Are you able to tell me what I am doing wrong?

Thank You
Reply With Quote
Reply

Bookmarks

Tags
.htaccess, multiple pages, rewriting


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie help - accessing a table dtmp JavaScript 4 08-22-07 03:03 PM
The Reasons Why do you Need URL Rewriting MODULE to Enchance your Web? handry PHP 11 08-05-05 07:32 AM
Newbie: .swf audio player with playlist Captdarryn Flash & ActionScript 2 04-28-05 03:13 AM
Newbie webbie tolongges New Members & Introductions 3 09-13-04 05:11 AM
perl/cgi newbie. hangman.cgi script adding html-like code on web and other trouble Arowana Perl 12 11-13-03 02:24 PM


All times are GMT -5. The time now is 01:29 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.