Re: [WebDNA] Clean URLS job - will pay

This WebDNA talk-list message is from

2010


It keeps the original formatting.
numero = 104772
interpreted = N
texte = Does rewrite work at all?=20 RewriteRule ^test.csn?$ index.csn [L] With the above, if you point the browser to test.csn, it should display=20 index.csn. Diane Blackmore (Cohesion) wrote: > Hmmm...=20 > > Thanks Matthew but this isn't working either - I get a blank screen and= the > URL is the un-parsed original. > > Totally stumped now. > > > Cheers, > > > on 17/2/10 3:52 AM, Matthew Bohne at matthew.bohne@benetela.com wrote: > > =20 >> Depends on how Apache is set up, but the general rule is to put the >> ..htaccess file in the directory that it will be modifying. I use >> several different .htaccess files depending on if it is a display page= , >> site admin, etc. >> >> The stuff is optional. It just checks to see if mod_rewrit= e >> is installed and running. The RewriteEngine line may be optional, too= . >> >> Diane Blackmore wrote: >> =20 >>> Hi >>> >>> If I'm using .htaccess, should this be in the root or in the director= y that >>> is calling the index.csn file? >>> >>> Unix server - Do I need the <> stuff? Do I need it if it's in a .htac= cess >>> file? >>> >>> Cheers and BIG thanks, >>> >>> >>> On 16/2/10 11:07 AM, "Matthew Bohne" wro= te: >>> >>> =20 >>> =20 >>>> Should be able to do it with this. The [L] means it is the last rule >>>> parsed, and the [QSA] tells mod_rewrite to pass the query string als= o. >>>> >>>> >>>> RewriteEngine on >>>> RewriteRule ^([A-Za-z0-9_]+).csn?$ index.csn?pageName=3D$1 [L,QSA] >>>> >>>> >>>> That said, mod_rewrite is worth learning. >>>> >>>> >>>> Diane Blackmore wrote: >>>> =20 >>>> =20 >>>>> Hi >>>>> >>>>> I have a need for a solution to rewrite =AD either by mod_rewrite o= r >>>>> other =AD the following URL syntax; >>>>> >>>>> url needs to go from: >>>>> >>>>> =20 >>>>> _http://launch72.cohesion.co.nz/online/index.csn?pageName=3Dadverti= ser_vacanc >>>>> ie >>>>> s&var1=3Dvar1&var2=3Dvar2&var3=3Dvar3 >>>>> =20 >>>>> >>>> ie >>>>> s&var1=3Dvar1&var2=3Dvar2&var3=3Dvar3>_ >>>>> =20 >>>>> <_http://launch72.cohesion.co.nz/online/index.csn?pageName=3Dadvert= iser_vacan >>>>> ci >>>>> es&var1=3Dvar1&var2=3Dvar2&var3=3Dvar3 >>>>> =20 >>>>> >>>> ie >>>>> s&var1=3Dvar1&var2=3Dvar2&var3=3Dvar3>_> >>>>> etc >>>>> >>>>> to >>>>> =20 >>>>> _http://launch72.cohesion.co.nz/online/advertiser_vacancies.csn?var= 1=3Dvar1&v >>>>> ar >>>>> 2=3Dvar2&var3=3Dvar3 >>>>> =20 >>>>> >>>> ar >>>>> 2=3Dvar2&var3=3Dvar3>_ >>>>> =20 >>>>> <_http://launch72.cohesion.co.nz/online/advertiser_vacancies.csn?va= r1=3Dvar1& >>>>> am >>>>> p;var2=3Dvar2&var3=3Dvar3 >>>>> =20 >>>>> >>>> ar >>>>> 2=3Dvar2&var3=3Dvar3>_> >>>>> etc >>>>> >>>>> >>>>> Happy to pay for this as a job, but its just not worth my learning >>>>> mod_rewrite for this one thing, and it=B9s kinda advanced given I=B9= m a >>>>> beginner at such things. >>>>> >>>>> You can contact me off list if you want to negotiate, otherwise if = you >>>>> look at the above and go =B3oh for heaven=B9s sake that=B9s too eas= y=B2 and >>>>> jst want to answer it here and now for the greater good of the WebD= NA >>>>> community, knock your socks off. >>>>> >>>>> >>>>> >>>>> Regards, >>>>> >>>>> >>>>> =20 >>>>> =20 >>>> --------------------------------------------------------- >>>> This message is sent to you because you are subscribed to >>>> the mailing list . >>>> To unsubscribe, E-mail to: >>>> archives: http://mail.webdna.us/list/talk@webdna.us >>>> old archives: http://dev.webdna.us/TalkListArchive/ >>>> Bug Reporting: http://forum.webdna.us/eucabb.html?page=3Dtopics&cate= gory=3D288 >>>> >>>> >>>> =20 >>>> =20 >>> Regards, >>> >>> >>> >>> >>> --------------------------------------------------------- >>> This message is sent to you because you are subscribed to >>> the mailing list . >>> To unsubscribe, E-mail to: >>> archives: http://mail.webdna.us/list/talk@webdna.us >>> old archives: http://dev.webdna.us/TalkListArchive/ >>> Bug Reporting: http://forum.webdna.us/eucabb.html?page=3Dtopics&categ= ory=3D288 >>> >>> >>> =20 >>> =20 >> --------------------------------------------------------- >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to: >> archives: http://mail.webdna.us/list/talk@webdna.us >> old archives: http://dev.webdna.us/TalkListArchive/ >> Bug Reporting: http://forum.webdna.us/eucabb.html?page=3Dtopics&catego= ry=3D288 >> >> >> =20 > > > > > > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > old archives: http://dev.webdna.us/TalkListArchive/ > Bug Reporting: http://forum.webdna.us/eucabb.html?page=3Dtopics&categor= y=3D288 > > > =20 Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Clean URLS job - will pay (Dan Strong 2010)
  2. RE: [WebDNA] Clean URLS job - will pay (matthew.bohne@benetela.com 2010)
  3. Re: [WebDNA] Clean URLS job - will pay (Tom Duke 2010)
  4. Re: [WebDNA] Clean URLS job - will pay (Stuart Tremain 2010)
  5. Re: [WebDNA] Clean URLS job - will pay ("Diane Blackmore (Cohesion)" 2010)
  6. Re: [WebDNA] Clean URLS job - will pay ("Diane Blackmore (Cohesion)" 2010)
  7. Re: [WebDNA] Clean URLS job - will pay (Stuart Tremain 2010)
  8. Re: [WebDNA] Clean URLS job - will pay ("Diane Blackmore (Cohesion)" 2010)
  9. Re: [WebDNA] Clean URLS job - will pay (Stuart Tremain 2010)
  10. Re: [WebDNA] Clean URLS job - will pay ("Diane Blackmore (Cohesion)" 2010)
  11. Re: [WebDNA] Clean URLS job - will pay (Stuart Tremain 2010)
  12. Re: [WebDNA] Clean URLS job - will pay ("Diane Blackmore (Cohesion)" 2010)
  13. Re: [WebDNA] Clean URLS job - will pay (Stuart Tremain 2010)
  14. Re: [WebDNA] Clean URLS job - will pay ("Diane Blackmore (Cohesion)" 2010)
  15. Re: [WebDNA] Clean URLS job - will pay (Stuart Tremain 2010)
  16. Re: [WebDNA] Clean URLS job - will pay ("Diane Blackmore (Cohesion)" 2010)
  17. Re: [WebDNA] Clean URLS job - will pay (Matthew Bohne 2010)
  18. Re: [WebDNA] Clean URLS job - will pay (Terry Wilson 2010)
  19. Re: [WebDNA] Clean URLS job - will pay (Stuart Tremain 2010)
  20. [BULK] Re: [WebDNA] Clean URLS job - will pay (Dan Strong 2010)
  21. Re: [WebDNA] Clean URLS job - will pay ("Diane Blackmore (Cohesion)" 2010)
  22. Re: [WebDNA] Clean URLS job - will pay (Tom Duke 2010)
  23. Re: [WebDNA] Clean URLS job - will pay ("Diane Blackmore (Cohesion)" 2010)
  24. Re: [WebDNA] Clean URLS job - will pay (Matthew Bohne 2010)
  25. Re: [WebDNA] Clean URLS job - will pay (Matthew Bohne 2010)
  26. Re: [WebDNA] Clean URLS job - will pay (Kenneth Grome 2010)
  27. Re: [WebDNA] Clean URLS job - will pay (Lawrence 2010)
  28. Re: [WebDNA] Clean URLS job - will pay (Tom Duke 2010)
  29. Re: [WebDNA] Clean URLS job - will pay (Matthew Bohne 2010)
  30. Re: [WebDNA] Clean URLS job - will pay (Matthew Bohne 2010)
  31. Re: [WebDNA] Clean URLS job - will pay (Lawrence 2010)
  32. Re: [WebDNA] Clean URLS job - will pay (Tom Duke 2010)
  33. Re: [WebDNA] Clean URLS job - will pay (Tom Duke 2010)
  34. Re: [WebDNA] Clean URLS job - will pay ("Diane Blackmore (Cohesion)" 2010)
  35. Re: [WebDNA] Clean URLS job - will pay ("Diane Blackmore (Cohesion)" 2010)
  36. Re: [WebDNA] Clean URLS job - will pay (Matthew Bohne 2010)
  37. Re: [WebDNA] Clean URLS job - will pay (Tom Duke 2010)
  38. Re: [WebDNA] Clean URLS job - will pay (Diane Blackmore 2010)
  39. Re: [WebDNA] Clean URLS job - will pay (Diane Blackmore 2010)
  40. Re: [WebDNA] Clean URLS job - will pay (Matthew Bohne 2010)
  41. Re: [WebDNA] Clean URLS job - will pay (Stuart Tremain 2010)
  42. [WebDNA] Clean URLS job - will pay (Diane Blackmore 2010)
Does rewrite work at all?=20 RewriteRule ^test.csn?$ index.csn [L] With the above, if you point the browser to test.csn, it should display=20 index.csn. Diane Blackmore (Cohesion) wrote: > Hmmm...=20 > > Thanks Matthew but this isn't working either - I get a blank screen and= the > URL is the un-parsed original. > > Totally stumped now. > > > Cheers, > > > on 17/2/10 3:52 AM, Matthew Bohne at matthew.bohne@benetela.com wrote: > > =20 >> Depends on how Apache is set up, but the general rule is to put the >> ..htaccess file in the directory that it will be modifying. I use >> several different .htaccess files depending on if it is a display page= , >> site admin, etc. >> >> The stuff is optional. It just checks to see if mod_rewrit= e >> is installed and running. The RewriteEngine line may be optional, too= . >> >> Diane Blackmore wrote: >> =20 >>> Hi >>> >>> If I'm using .htaccess, should this be in the root or in the director= y that >>> is calling the index.csn file? >>> >>> Unix server - Do I need the <> stuff? Do I need it if it's in a .htac= cess >>> file? >>> >>> Cheers and BIG thanks, >>> >>> >>> On 16/2/10 11:07 AM, "Matthew Bohne" wro= te: >>> >>> =20 >>> =20 >>>> Should be able to do it with this. The [L] means it is the last rule >>>> parsed, and the [QSA] tells mod_rewrite to pass the query string als= o. >>>> >>>> >>>> RewriteEngine on >>>> RewriteRule ^([A-Za-z0-9_]+).csn?$ index.csn?pageName=3D$1 [L,QSA] >>>> >>>> >>>> That said, mod_rewrite is worth learning. >>>> >>>> >>>> Diane Blackmore wrote: >>>> =20 >>>> =20 >>>>> Hi >>>>> >>>>> I have a need for a solution to rewrite =AD either by mod_rewrite o= r >>>>> other =AD the following URL syntax; >>>>> >>>>> url needs to go from: >>>>> >>>>> =20 >>>>> _http://launch72.cohesion.co.nz/online/index.csn?pageName=3Dadverti= ser_vacanc >>>>> ie >>>>> s&var1=3Dvar1&var2=3Dvar2&var3=3Dvar3 >>>>> =20 >>>>> >>>> ie >>>>> s&var1=3Dvar1&var2=3Dvar2&var3=3Dvar3>_ >>>>> =20 >>>>> <_http://launch72.cohesion.co.nz/online/index.csn?pageName=3Dadvert= iser_vacan >>>>> ci >>>>> es&var1=3Dvar1&var2=3Dvar2&var3=3Dvar3 >>>>> =20 >>>>> >>>> ie >>>>> s&var1=3Dvar1&var2=3Dvar2&var3=3Dvar3>_> >>>>> etc >>>>> >>>>> to >>>>> =20 >>>>> _http://launch72.cohesion.co.nz/online/advertiser_vacancies.csn?var= 1=3Dvar1&v >>>>> ar >>>>> 2=3Dvar2&var3=3Dvar3 >>>>> =20 >>>>> >>>> ar >>>>> 2=3Dvar2&var3=3Dvar3>_ >>>>> =20 >>>>> <_http://launch72.cohesion.co.nz/online/advertiser_vacancies.csn?va= r1=3Dvar1& >>>>> am >>>>> p;var2=3Dvar2&var3=3Dvar3 >>>>> =20 >>>>> >>>> ar >>>>> 2=3Dvar2&var3=3Dvar3>_> >>>>> etc >>>>> >>>>> >>>>> Happy to pay for this as a job, but its just not worth my learning >>>>> mod_rewrite for this one thing, and it=B9s kinda advanced given I=B9= m a >>>>> beginner at such things. >>>>> >>>>> You can contact me off list if you want to negotiate, otherwise if = you >>>>> look at the above and go =B3oh for heaven=B9s sake that=B9s too eas= y=B2 and >>>>> jst want to answer it here and now for the greater good of the WebD= NA >>>>> community, knock your socks off. >>>>> >>>>> >>>>> >>>>> Regards, >>>>> >>>>> >>>>> =20 >>>>> =20 >>>> --------------------------------------------------------- >>>> This message is sent to you because you are subscribed to >>>> the mailing list . >>>> To unsubscribe, E-mail to: >>>> archives: http://mail.webdna.us/list/talk@webdna.us >>>> old archives: http://dev.webdna.us/TalkListArchive/ >>>> Bug Reporting: http://forum.webdna.us/eucabb.html?page=3Dtopics&cate= gory=3D288 >>>> >>>> >>>> =20 >>>> =20 >>> Regards, >>> >>> >>> >>> >>> --------------------------------------------------------- >>> This message is sent to you because you are subscribed to >>> the mailing list . >>> To unsubscribe, E-mail to: >>> archives: http://mail.webdna.us/list/talk@webdna.us >>> old archives: http://dev.webdna.us/TalkListArchive/ >>> Bug Reporting: http://forum.webdna.us/eucabb.html?page=3Dtopics&categ= ory=3D288 >>> >>> >>> =20 >>> =20 >> --------------------------------------------------------- >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to: >> archives: http://mail.webdna.us/list/talk@webdna.us >> old archives: http://dev.webdna.us/TalkListArchive/ >> Bug Reporting: http://forum.webdna.us/eucabb.html?page=3Dtopics&catego= ry=3D288 >> >> >> =20 > > > > > > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > old archives: http://dev.webdna.us/TalkListArchive/ > Bug Reporting: http://forum.webdna.us/eucabb.html?page=3Dtopics&categor= y=3D288 > > > =20 Matthew Bohne

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Discounts (2002) WebCat2b15MacPlugin - showing [math] (1997) Email encryption (1998) Database Import/Export (1998) [CART] inside a [LOOP] (1997) when is date system date or order date? (1997) [OT] MacOs IE5 topmargin and leftmargin bug (2000) Re[2]: Enhancement Request for WebCatalog-NT (1996) Using [Include] Context (1999) List Archives (2000) Date search - yes or no (1997) For those of you not on the WebCatalog Beta... (1997) [NT] ie 4.0 required (1997) foriegn characters and webcatalog (1997) WCS Newbie question (1997) Search Engine questions ... (2002) Date calculation problems (1997) database size? (1997) Generating Report Totals (1997) cart ID (1998)