SEO | Link Popularity | Search Engine Consulting | SEO Tutorial | SEO Tools | SEO Forum
Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 07-21-2006, 07:12 AM
Andy_dg Andy_dg is offline
SEO Junior
 
Join Date: Jul 2006
Posts: 3 Andy_dg is on a distinguished road
plzz help-- isapi_rewrite rule

hi,

I am new to writing isapi_rewrite rules.could you let me know how to write a rule to achieve the following.

http://www.temporary.com/soccer/search/all?q=soccer with soccer always being the sports name.
Reply With Quote
  #2  
Old 07-21-2006, 09:11 AM
dilligaf's Avatar
dilligaf dilligaf is offline
SEO GUY Moderator
 
Join Date: May 2004
Location: Tampa Bay
Posts: 2,847 dilligaf has a spectacular aura aboutdilligaf has a spectacular aura about
I'm not sure I get it... how do you want the url above to look?

And, welcome to the forum.
Reply With Quote
  #3  
Old 07-21-2006, 10:13 AM
Andy_dg Andy_dg is offline
SEO Junior
 
Join Date: Jul 2006
Posts: 3 Andy_dg is on a distinguished road
I want to write a rule which will change the url viz.,
www.temporary.com/soccer to
http://www.temporary.com/soccer/search/all?q=soccer


I have written the following rules but it is not working. Have I missed something ?

RewriteRule /(soccer|hockey|golf)/?(\?|\?.+)? /$1 [I,U]
RewriteRule /([^\/]+)/search/(all)(\?)?(.+)? /Search\.aspx\?i=$1&b=$2(?3(?4&$4: ): ) [I,L,U]
Reply With Quote
  #4  
Old 07-21-2006, 12:34 PM
dilligaf's Avatar
dilligaf dilligaf is offline
SEO GUY Moderator
 
Join Date: May 2004
Location: Tampa Bay
Posts: 2,847 dilligaf has a spectacular aura aboutdilligaf has a spectacular aura about
One of is, maybe someone else can chime in but it looks like you're trying to add a variable to a static page. Maybe you can pm me the url if you don't want to post it.
Reply With Quote
  #5  
Old 07-21-2006, 03:00 PM
Andy_dg Andy_dg is offline
SEO Junior
 
Join Date: Jul 2006
Posts: 3 Andy_dg is on a distinguished road
for the rule,
RewriteRule /(soccer|hockey|golf)/?(\?(.*))? /$1/search/all\?q=$1?2&$2: [I,L]

When I enter http://www.temporary.com/soccer in the url , i get the error
" soccer/search/all?q=soccer " was not found on this server "

also, could you please let me know , why does the url not change to http://www.temporary.com/soccer/search/all?q=soccer

thanks in advance,
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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
Forum Jump


Login/Register
User Name
Password
Remember Me?

Forum Links
Forum Home
SEO Forum
Internet Marketing Forum
Web Design Forum
Web Hosting Forum
Programming Forum
SEO Chat

Quick Links
Forum Home
New Posts
Mark Forums Read
Open Buddy List
User Control Panel
Edit Avatar
Edit Profile
Edit Options
Miscellaneous
Subscribed Threads
My Profile

Search Forums

Advanced Search
All times are GMT -8. The time now is 03:16 AM.


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