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:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old April 19th, 2001, 10:37 PM
fantom fantom is offline
Up To No Good!
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 69 fantom User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 26 m 20 sec
Reputation Power: 8
Arrow

I was wondering is there a way I can use mod_rewrite module to translate URL's containing query strings into URL addresses that search engine spiders can follow, something like this:

instead of
http://www.mysite.com/products.php?id=22343

you get a string like this:
http://www.mysite.com/products.php/22343

I am hosting my site on a webhost that has a mod_rewrite module on, but doesn't allow me to change any configuration in httpd.conf file... so is there any way I can use .htaccess files to turn on whatever feature needs to be on?

Reply With Quote
  #2  
Old April 22nd, 2001, 08:57 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
Do a search in Apache forum under my username. I discussed this some time last year, it was the longest thread in Apache forum.

Reply With Quote
  #3  
Old April 22nd, 2001, 03:23 PM
fantom fantom is offline
Up To No Good!
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 69 fantom User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 26 m 20 sec
Reputation Power: 8
I found it at http://forums.devshed.com/showthrea...9203&forumid=15, and it helped me get most of the stuff working the way I wanted, except few more details:

I have found that these lines work just fine for me:

####################
DirectoryIndex index.php3
RewriteEngine on
RewriteRule ^([A-Za-z0-9_]+)$ index.php3?letter=$1
RewriteRule ^download/([0-9]+)$ download.php3?number=$1
####################

But the problem is how do I use this rewrite condition with FORM querying the database (more specifically using the download.php3 as my FORM ACTION), so that the url doesn't show the actual download.php3, but just /download/3824 or whatever the number of the database entry is.

Here, take a look, and let me know if you can help me out:
http://www.coverz.com/audio/

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > mod_rewrite (again?!)


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