Announcement

Collapse
No announcement yet.

Search string as URL

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Search string as URL

    Is it possible to enter a search results url as a section url so that when clicked it forwards to a search results page, as follows.

    Red widgets goes to redwidgets.html
    Yellow widgets goes to yellowwidgets.html

    All widgets goes to search results page for widgets.

    I have searched the forum but haven't found anything.

    Any help would be appreciated.

    Many thanks

    Jason
    Regards

    Jason

    Titan Jewellery (Swift Design)
    Zirconium Rings
    Damascus Steel Rings

    #2
    You could just run the search you want (i.e. type "widgets" into your search page) and then copy the URL from the browser address bar and put this into the link for your section. This of course implies you are "hard coding" the URL for your section links rather than allowing Actinic to sort it out.
    ActiveStock
    On-line, real-time stock control plug-in for Actinic V7, V8 and V9
    **New - Captcha plug-in for your Contact Us form**

    ActiveStock website
    Free 30 Day Trial
    ActiveStock Blog (including a new tutorial on a 'Sort By' function for long section pages)

    Comment


      #3
      you could also take your search results string and use your htaccess to mod-rewrite the url, so that:

      http://www.xyzshop.co.uk/search/red.html

      resolves to:

      http://www.xyzshop.co.uk/cgi-bin/ss000001.pl?SS=red&action=Go!&PR=-1&TB=A&SHOP=

      Comment


        #4
        try this in your .htaccess:

        Code:
        RewriteEngine on
        RewriteBase    /
        Options +FollowSymLinks
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteRule search/(.*).htm cgi-bin/ss000001.pl?SS=$1&PR=-1&TB=A
        NOTE:
        ss000001.pl MAY be different for you, if your perl script number is higher, for whatever reason.

        examples:
        http://www.skateasylum.co.uk/search/red.htm
        http://www.skateasylum.co.uk/search/blue.htm
        http://www.skateasylum.co.uk/search/purple.htm

        Comment


          #5
          Many thanks for your replies.

          Gabe, I did think a .htaccess file was the way to go but was hoping that I could some how just enter the string some where in Actinic.

          Kind regards

          Jason
          Regards

          Jason

          Titan Jewellery (Swift Design)
          Zirconium Rings
          Damascus Steel Rings

          Comment

          Working...
          X