Development Tutorials
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsCommunityDevelopment Tutorials

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old April 7th, 2003, 10:06 PM
benos benos is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 233 benos User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Article Dicussion: Search Engine Friendly URLs with mod_rewrite

If you have any questions or comments on this article then please post them here.

This forum post relates to this article

Reply With Quote
  #2  
Old April 19th, 2003, 09:57 AM
numbernine numbernine is offline
Up To His Eyes In Ads
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: Chicago
Posts: 160 numbernine User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 25 sec
Reputation Power: 8
Is there anyway to do this same sort of thing running IIS?

Reply With Quote
  #3  
Old May 11th, 2003, 08:02 PM
brianharrell brianharrell is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: USA-MN
Posts: 2 brianharrell User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I can't get mod_rewrite to work.

Can you help?

Reply With Quote
  #4  
Old May 11th, 2003, 11:48 PM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Posts: 2,058 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 44 m 22 sec
Reputation Power: 0
For mod_rewrite on IIS, google "mod_rewrite IIS" - heaps of companies are offering it

Reply With Quote
  #5  
Old May 12th, 2003, 09:18 PM
brianharrell brianharrell is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: USA-MN
Posts: 2 brianharrell User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks!

Thanks!

Reply With Quote
  #6  
Old August 9th, 2003, 02:42 PM
tcjay tcjay is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 4 tcjay User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question prerequisites

Prerequisites


./configure
--enable-module=rewrite
--enable-shared=rewrite



<Directory /www/htdocs/yoursite>
Options ExecCGI FollowSymLinks Includes MultiViews
</Directory>

Where do the files containing ./configure and the httpd.config go?

Reply With Quote
  #7  
Old August 10th, 2003, 09:22 AM
aspnewbie aspnewbie is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: The Great White North
Posts: 361 aspnewbie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 58 m 50 sec
Reputation Power: 8
Send a message via MSN to aspnewbie
nevermind, I just reread stumpy's post.

Reply With Quote
  #8  
Old August 26th, 2003, 12:46 PM
sZen sZen is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Posts: 3 sZen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hello maybe someone help me. In .htaccess file i have:
Code:
RewriteEngine On
RewriteRule ^test/(.*)/(.*).php /test.php?action=$1&ok=$2


and in test.php file i have:

PHP Code:
<?
if ($action == "oc") {
echo 
"hello";
}
if ((
$action == "oc")  AND ($ok == "yes")) {
echo 
"hello again";
}
?>


when i'm going to:
URL
it show: hello again
but when i'm going to:
URL
then it's show 404 error why??

Last edited by sZen : August 26th, 2003 at 12:55 PM.

Reply With Quote
  #9  
Old October 20th, 2003, 12:43 PM
manoloweb manoloweb is offline
Moderated
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: Monterrey MX
Posts: 49 manoloweb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
I can see this:

You are telling the Rewrite rule to do this:
RewriteRule ^test/(.*)/(.*).php /test.php?action=$1&ok=$2

Which means that after test must have something/something.php

This is OK when you do the first link:
http://www.mysite.com/test/oc/yes.php

But it fails when trying to do the second one because you are not matching the rule, and it tries to find the literal URL you typed, which don't exist...

http://www.mysite.com/test/oc.php

Well that's what I think...
__________________
The deal is not to know everything, but to know the email of the one who does.

Reply With Quote
  #10  
Old October 20th, 2003, 12:54 PM
manoloweb manoloweb is offline
Moderated
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: Monterrey MX
Posts: 49 manoloweb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Now I have a question...

I have been testing this rewrite thing, and I think that it is clear enough how tou use it, but when it comes to the PHP script which is called after the rewrite, I don't know how to deal with the $_GET variables I was using to feed the variables and functions...

Let's say that I rewrite this:

www.site.com/products/123

to this:

www.site.com/index.php?mode=catalog&prodID=123


Then I try to use (as I did it before) $_GET["mode"] to launch the product catalog, and $_GET["prodID"] to retrieve the info for that product.


It just does NOTHING... it seems like $_GET is not available. Am I doing something wrong or should I change the way I pass variables between scripts?

Thank You!

Reply With Quote
  #11  
Old October 23rd, 2003, 09:48 AM
manoloweb manoloweb is offline
Moderated
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: Monterrey MX
Posts: 49 manoloweb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
I have another question...

Does the author read the forum posts about his article? or is this because of the incorrect forum?? (this one should be in Article Discussion, not "Other Stuff")

Thank you anyway.


Reply With Quote
  #12  
Old October 26th, 2003, 08:44 AM
aspnewbie aspnewbie is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: The Great White North
Posts: 361 aspnewbie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 58 m 50 sec
Reputation Power: 8
Send a message via MSN to aspnewbie
Hey manoloweb. I have just moved the forum over to Articles Discussions. The Article Discussions is a new forum and we're still in the process of moving over all the article discussion threads to the new forum.

Reply With Quote
  #13  
Old November 9th, 2003, 12:03 PM
aspnewbie aspnewbie is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: The Great White North
Posts: 361 aspnewbie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 58 m 50 sec
Reputation Power: 8
Send a message via MSN to aspnewbie
We're currently testing ISAPI rewrite and it's not working as I had anticipated. It also doesn't transpose all the links, rather it just seems to allow for itempage/page/5 to work the same as itempage.asp?pageid=5. By substituting / instead ? and, it's in effect creating subdirectories in the url, which throws off all the image links and hyperlinks. (I have used include files) Since my images are located in a images folder, itempage/page/5 needs a ../../images/ whereas itempage.asp?pageid=5 needs images/

I don't want to submit 500+ pages to search engines, so I'm thinking that I'm doing something wrong here. Do I need to do redirects for the pages as well? I thought search engines don't like that?

I would be interested to hear from anyone else who has experience with this or the other IIS rewrite program.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsCommunityDevelopment Tutorials > Article Dicussion: Search Engine Friendly URLs with mod_rewrite


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump




 Free IT White Papers!
 
Create the Optimal Architecture for your Critical Applications
Warburton's the largest independently owned bakery in the UK faced a number of difficult challenges in providing the most robust yet efficient IT infrastructure for their organization's success. IBM's services combined with their xSeries servers created the perfect platform for their SAP environment with sufficient flexibility, and did so in very time effective fashion.

Request Your Free Technology Downloads!
 
Five Best Practices for Deploying a Successful Service-Oriented Architecture
This white paper describes the benefits you can expect with SOA, and how IBM can help take your business there.

Request Your Free Technology Downloads!
 
Gartner Magic Quadrant for Application Delivery Controllers
Gartner summarizes its view on Application Delivery Controllers, evaluates strengths and weaknesses of solutions, and provides Magic Quadrant reporting for a quick comparison across all vendors. Learn from Gartner how you can benefit from an all-in-one device like Citrix NetScaler that delivers the highest levels of availability, performance and security.

Request Your Free Technology Downloads!
 
Knowledge is Power
What you don't know can hurt you, and is likely costing you money and increasing your security risks during an era of scarce resources. This white paper proposes six key strategies that enterprise security managers can use to improve their network defense posture.

Request Your Free Technology Downloads!
 
Rationalizing the Multi-Tool Environment
The rationalized multi-tool approach is flexible, scalable and cost effective. It provides the necessary input to the IT service management business processes. It preserves prior investments in monitoring tools, empowers technologists to select the best tools with which to do their jobs, and enhances effective response to incidents.

Request Your Free Technology Downloads!
 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 




© 2003-2010 by Developer Shed. All rights reserved. DS Cluster 3 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek