--------------040702000109070909010405Content-Type: image/jpeg; x-apple-mail-type=stationery; name="compose-unknown-contact.jpg"Content-Transfer-Encoding: base64Content-ID:31 août 2013 00:48LawrenceTo achieve your links http://www.sensationvoile.fr/mypermalink you will need to have your internal links looking like this:[search db=base.db&neSKUdata=all][numfound]
[founditems]<a href="/[permalink]">click to my clean url</a><br>[/founditems][/search]Then your .htaccess file needs to be able to reverse the processRewriteRule ^([A-Za-z0-9-]+)/?$ /index.dna?permalinkvar=$1 [NC,L]Your index.dna file then needs to use the permalink variable to find the content ie[search db=base.db&eqPERMALINKdatarq=[PERMALINKVAR]&max=1][numfound]
[founditems][SKU] - [DATA]<br>[/founditems][/search]The above RewriteRule works on Linux Apache2, I assume that it will work on OSX, there are a few little things that may change from platform to platform, I know it needs a change on IIS where I need to add a / in the first part to ^/([A-Za-z0-9-]+)/?$If you find that there are still problems try removing the / from the end )/?$. There is also lots of help in Google.Have you tested that your mod_rewrite is set up properly - once again Google a test scenario that suits your setup.There are a few "Cheat Sheets" that are very good in working out the best method of doing your rules, also checkout RegExThere are also situations where submitting a form that is handled in modrewrite loses its data so if you find that you are having problems there are ways of fixing that too.Good luck, weekend is here, I am off for a few days.---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list.To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.usBug Reporting: support@webdna.us 30 août 2013 19:33Here is what I'm triyng to do
Website : http://www.sensationvoile.fr/
To try to get this working I'm created a small database
sku data permalink
01 mydata mypermalink
02 newdata secondlink
Then I display the content
[search db=base.db&neSKUdata=all][numfound]
[founditems]<a href="[thisurl]?SKU=[data]">[data]</a><br>[/founditems]
<hr />
[founditems]<a href="[thisurl]?SKU=[SKU]">[data]</a><br>[/founditems]
[/search]
What I want to do is to get
http://www.sensationvoile.fr/mypermalink
or
http://www.sensationvoile.fr/secondlink
so like that I get nice URL SEO friendly
John, I need to be working on one of my existing website, but I worked from what I found in your .htaccess
30 août 2013 14:29Lawrence
Please give an example of what you are trying to do.
---------------------------------------------------------
This message is sent to you because you are subscribed to
the mailing list <talk@webdna.us>.
To unsubscribe, E-mail to: <talk-leave@webdna.us>
archives: http://mail.webdna.us/list/talk@webdna.us
Bug Reporting: support@webdna.us30 août 2013 13:53Hi
I'm trying to set up a RewriteRule in the .htacess o my mac/apache server to get nice url
I can't understand why it's not working.
Here is the code I'm using in the htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)$ index.dna?REQUEST_URI=%{REQUEST_URI} [L]
</IfModule>
Thanks in advance
Lawrence
|
--------------040702000109070909010405Content-Type: image/jpeg; x-apple-mail-type=stationery; name="compose-unknown-contact.jpg"Content-Transfer-Encoding: base64Content-ID:31 août 2013 00:48LawrenceTo achieve your links http://www.sensationvoile.fr/mypermalink you will need to have your internal links looking like this:[search db=base.db&neSKUdata=all]<a href="/[permalink]">click to my clean url</a><br>[/founditems][/search]Then your .htaccess file needs to be able to reverse the processRewriteRule ^([A-Za-z0-9-]+)/?$ /index.dna?permalinkvar=$1 [NC,L]Your index.dna file then needs to use the permalink variable to find the content ie[search db=base.db&eqPERMALINKdatarq=[PERMALINKVAR]&max=1][SKU] - [DATA]<br>[/founditems][/search]The above RewriteRule works on Linux Apache2, I assume that it will work on OSX, there are a few little things that may change from platform to platform, I know it needs a change on IIS where I need to add a / in the first part to ^/([A-Za-z0-9-]+)/?$If you find that there are still problems try removing the / from the end )/?$. There is also lots of help in Google.Have you tested that your mod_rewrite is set up properly - once again Google a test scenario that suits your setup.There are a few "Cheat Sheets" that are very good in working out the best method of doing your rules, also checkout RegExThere are also situations where submitting a form that is handled in modrewrite loses its data so if you find that you are having problems there are ways of fixing that too.Good luck, weekend is here, I am off for a few days.---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list.To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.usBug Reporting: support@webdna.us 30 août 2013 19:33Here is what I'm triyng to do
Website : http://www.sensationvoile.fr/
To try to get this working I'm created a small database
sku data permalink
01 mydata mypermalink
02 newdata secondlink
Then I display the content
[search db=base.db&neSKUdata=all][numfound]
[founditems]<a href="[thisurl]?SKU=[data]">[data]</a><br>[/founditems]
<hr />
[founditems]<a href="[thisurl]?SKU=[SKU]">[data]</a><br>[/founditems]
[/search]
What I want to do is to get
http://www.sensationvoile.fr/mypermalink
or
http://www.sensationvoile.fr/secondlink
so like that I get nice URL SEO friendly
John, I need to be working on one of my existing website, but I worked from what I found in your .htaccess
30 août 2013 14:29Lawrence
Please give an example of what you are trying to do.
---------------------------------------------------------
This message is sent to you because you are subscribed to
the mailing list <talk@webdna.us>.
To unsubscribe, E-mail to: <talk-leave@webdna.us>
archives: http://mail.webdna.us/list/talk@webdna.us
Bug Reporting: support@webdna.us30 août 2013 13:53Hi
I'm trying to set up a RewriteRule in the .htacess o my mac/apache server to get nice url
I can't understand why it's not working.
Here is the code I'm using in the htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)$ index.dna?REQUEST_URI=%{REQUEST_URI} [L]
</IfModule>
Thanks in advance
Lawrence
DOWNLOAD WEBDNA NOW!
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...