|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
||||
|
||||
|
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 |
|
#2
|
|||
|
|||
|
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:
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.. |
|
#3
|
|||
|
|||
|
>> 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. |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > rewrite engine |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|