[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.


Closed Thread
 
LinkBack Thread Tools
Old 08-18-2008, 03:24 PM   #1 (permalink)
NamePros Regular
 
Join Date: Mar 2005
Posts: 757
3.00 NP$ (Donate)

bidawinner is a name known to allbidawinner is a name known to allbidawinner is a name known to allbidawinner is a name known to allbidawinner is a name known to allbidawinner is a name known to all


Assitance with .htaccess redirect $10

Have a dynamic site ..


and we need ..


"htt://oursite.com/<state>/chart_data.php?<data>" go to "htt://oursite.com/chart_data.php?<data>" using a .htaccess redirect.

We have pages City pages that we cannot get dynamic charts working on because there is no "real" city pages.. ...
bidawinner is offline  
Old 08-18-2008, 07:02 PM   #2 (permalink)
New Member
 
un4given[MAD]'s Avatar
 
Join Date: Aug 2008
Location: Solar System \ Earth \ Ukraine \ Kiev
Posts: 23
470.00 NP$ (Donate)

un4given[MAD] is an unknown quantity at this point


Smile

I guess .htaccess should look like this (if i understood a problem correctly):

PHP Code:
RewriteEngine on
RewriteRule
^([a-zA-Z0-9]+)/chart_data.php /chart_data.php [R,QSA]
If <state> may contain symbols others than letters and numbers, just add them into []
__________________
WBR, un4given[MAD]
un4given[MAD] is offline  
Old 08-18-2008, 07:05 PM   #3 (permalink)
NamePros Regular
 
Join Date: Mar 2005
Posts: 757
3.00 NP$ (Donate)

bidawinner is a name known to allbidawinner is a name known to allbidawinner is a name known to allbidawinner is a name known to allbidawinner is a name known to allbidawinner is a name known to all


Quote:
Originally Posted by un4given[MAD]
I guess .htaccess should look like this (if i understood a problem correctly):

PHP Code:
RewriteEngine on
RewriteRule
^([a-zA-Z0-9]+)/chart_data.php /chart_data.php [R,QSA]
If <state> may contain symbols others than letters and numbers, just add them into []

PM coming
bidawinner is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 02:03 AM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85