Re: [WebDNA] Clean URLS job - will pay
This WebDNA talk-list message is from 2010
It keeps the original formatting.
numero = 104754
interpreted = N
texte = Depends on how Apache is set up, but the general rule is to put the=20.htaccess file in the directory that it will be modifying. I use=20several different .htaccess files depending on if it is a display page,=20site admin, etc.The
stuff is optional. It just checks to see if mod_rewrite=20is installed and running. The RewriteEngine line may be optional, too.Diane Blackmore wrote:> Hi>> If I'm using .htaccess, should this be in the root or in the directory =that> is calling the index.csn file?>> Unix server - Do I need the <> stuff? Do I need it if it's in a .htacce=ss> file?>> Cheers and BIG thanks,>>> On 16/2/10 11:07 AM, "Matthew Bohne" wrote=:>> =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 also.>>>> >> 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>>> Hi>>>>>> I have a need for a solution to rewrite =AD either by mod_rewrite or>>> other =AD the following URL syntax;>>>>>> url needs to go from:>>>>>> =20>>> _http://launch72.cohesion.co.nz/online/index.csn?pageName=3Dadvertise=r_vacancie>>> s&var1=3Dvar1&var2=3Dvar2&var3=3Dvar3>>> =20>>> >> s&var1=3Dvar1&var2=3Dvar2&var3=3Dvar3>_>>> =20>>> <_http://launch72.cohesion.co.nz/online/index.csn?pageName=3Dadvertis=er_vacanci>>> es&var1=3Dvar1&var2=3Dvar2&var3=3Dvar3>>> =20>>> >> s&var1=3Dvar1&var2=3Dvar2&var3=3Dvar3>_>>>> etc>>>>>> to>>> =20>>> _http://launch72.cohesion.co.nz/online/advertiser_vacancies.csn?var1=3D=var1&var>>> 2=3Dvar2&var3=3Dvar3>>> =20>>> >> 2=3Dvar2&var3=3Dvar3>_>>> =20>>> <_http://launch72.cohesion.co.nz/online/advertiser_vacancies.csn?var1==3Dvar1&am>>> p;var2=3Dvar2&var3=3Dvar3>>> =20>>> >> 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=B9m= a>>> beginner at such things.>>>>>> You can contact me off list if you want to negotiate, otherwise if yo=u>>> look at the above and go =B3oh for heaven=B9s sake that=B9s too easy=B2= and>>> jst want to answer it here and now for the greater good of the WebDNA>>> community, knock your socks off.>>>>>>>>>>>> Regards,>>>>>>>>> =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>> 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&categor=y=3D288>>> =20
Associated Messages, from the most recent to the oldest:
Depends on how Apache is set up, but the general rule is to put the=20.htaccess file in the directory that it will be modifying. I use=20several different .htaccess files depending on if it is a display page,=20site admin, etc.The stuff is optional. It just checks to see if mod_rewrite=20is installed and running. The RewriteEngine line may be optional, too.Diane Blackmore wrote:> Hi>> If I'm using .htaccess, should this be in the root or in the directory =that> is calling the index.csn file?>> Unix server - Do I need the <> stuff? Do I need it if it's in a .htacce=ss> file?>> Cheers and BIG thanks,>>> On 16/2/10 11:07 AM, "Matthew Bohne" wrote=:>> =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 also.>>>> >> 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>>> Hi>>>>>> I have a need for a solution to rewrite =AD either by mod_rewrite or>>> other =AD the following URL syntax;>>>>>> url needs to go from:>>>>>> =20>>> _http://launch72.cohesion.co.nz/online/index.csn?pageName=3Dadvertise=r_vacancie>>> s&var1=3Dvar1&var2=3Dvar2&var3=3Dvar3>>> =20>>> >> s&var1=3Dvar1&var2=3Dvar2&var3=3Dvar3>_>>> =20>>> <_http://launch72.cohesion.co.nz/online/index.csn?pageName=3Dadvertis=er_vacanci>>> es&var1=3Dvar1&var2=3Dvar2&var3=3Dvar3>>> =20>>> >> s&var1=3Dvar1&var2=3Dvar2&var3=3Dvar3>_>>>> etc>>>>>> to>>> =20>>> _http://launch72.cohesion.co.nz/online/advertiser_vacancies.csn?var1=3D=var1&var>>> 2=3Dvar2&var3=3Dvar3>>> =20>>> >> 2=3Dvar2&var3=3Dvar3>_>>> =20>>> <_http://launch72.cohesion.co.nz/online/advertiser_vacancies.csn?var1==3Dvar1&am>>> p;var2=3Dvar2&var3=3Dvar3>>> =20>>> >> 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=B9m= a>>> beginner at such things.>>>>>> You can contact me off list if you want to negotiate, otherwise if yo=u>>> look at the above and go =B3oh for heaven=B9s sake that=B9s too easy=B2= and>>> jst want to answer it here and now for the greater good of the WebDNA>>> community, knock your socks off.>>>>>>>>>>>> Regards,>>>>>>>>> =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>> 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&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:
AOL (1999)
Using Plug-In while running 1.6.1 (1997)
[WebDNA] Need to convert unix date? (2009)
Bug Report, maybe (1997)
WebDNA & HTML Problems (2003)
WebDNA Module with Apache 2.2 (2006)
Me know logical no need (2002)
PhotoMill -> PhotoMaster (1997)
WebCat2 - [format thousands] (1997)
WCS Newbie question (1997)
NT or Mac (1997)
hmmm (2006)
LOOP and IF statements (1997)
RE: SSL and WebCatalog (1997)
Possible Bug in 2.0b15.acgi (1997)
Dreamweaver Extensions for WC (2000)
Review comparison by PC Magazine: Open for On-line Business (1997)
no global [username] or [password] displayed ... (1997)
WebCat2 - [format thousands] (1997)
Quitting WebMerchant ? (1997)