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, 11: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: 7
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, 10: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, 09: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 12th, 2003, 12:48 AM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Location: Sydney, AU
Posts: 2,058 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 9 m 52 sec
Reputation Power: 10
Send a message via ICQ to stumpy Send a message via MSN to stumpy
For mod_rewrite on IIS, google "mod_rewrite IIS" - heaps of companies are offering it
__________________
DevArticles Moderator
BlueSix - Web Development and Consulting

Reply With Quote
  #5  
Old May 12th, 2003, 10: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, 03: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, 10: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, 01: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 01:55 PM.

Reply With Quote
  #9  
Old October 20th, 2003, 01: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, 01: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, 10: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, 09: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, 01: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!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

Request Your Free Technology Downloads!
 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

Request Your Free Technology Downloads!
 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

Request Your Free Technology Downloads!
 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

Request Your Free Technology Downloads!
 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

Request Your Free Technology Downloads!
 

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




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