Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
  #1  
Old October 31st, 2001, 10:23 AM
m0nk3y's Avatar
m0nk3y m0nk3y is offline
Certified m0nk3y!
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2001
Posts: 437 m0nk3y User rank is Lance Corporal (50 - 100 Reputation Level)m0nk3y User rank is Lance Corporal (50 - 100 Reputation Level)m0nk3y User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 14 h 23 m 38 sec
Reputation Power: 7
Send a message via MSN to m0nk3y
Question rewrite engine

Is it possible to do the following with the rewrite engine on apache. I have looked through the apache website and rewrite manuals and dont really understand them.

Is it possible to have an URL such as:

www.??.com/Server_Side/PHP/???/page1.html

??? = article name such as /How_it_works/ or /Basics/

and this goes to a link link like:

articles.php?cat=1&id=2&page=1

Is it possible to do that, a bit like devshed URL's because that is done with rewrite i think.

If it can be done, how is it done, what do i have to do to get it working, what do i change??
__________________
---------
Linux...Macs.... there boring, they just work....... Windows users on the other hand have all the fun!!
---------
PHP | MySQL | Apache | Zend

Reply With Quote
  #2  
Old October 31st, 2001, 09:46 PM
mezz mezz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2001
Posts: 310 mezz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
No, I don't think it's done by rewrite.. It's done by Perl, PHP and ASP scripts.. They made this links..

Example in PHP:
PHP Code:
<?php
  
if ($id == "yes"){
        echo 
"yes";
  }else{
        echo 
"mistyped the link?";
  }
?>


Now, save as test.php then enter in the browser follow:
www.blah.com/test.php?id=yes
www.blah.com/test.php?id=aerablah

This is what I know in basic.. If you want know more deeper, go to PHP section and ask some PHP programmer for help..

Reply With Quote
  #3  
Old November 1st, 2001, 01:30 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> Now, save as test.php then enter in the browser follow:
>> www.blah.com/test.php?id=yes

He wants the opposite way around. Either way, mod_rewrite is more reliable and efficient than doing it within your script (requires more process).

>> Is it possible to do that, a bit like devshed URL's because that is done with rewrite i think

Do a search with the keyword RewriteRule under my username in this forum. Your situation has been asked and answered couple hundred times here.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > rewrite engine


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


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





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway