Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #253720

    Hi, just a minor issue I found today – I used a little .htaccess “hack” to rewrite WordPress’ standard search URLs to nice-URLs; it turns

    http://blog.datenschmutz.net/?s=foo into http://blog.datenschmutz.net/search/foo

    These are the two lines of code:

    RewriteCond %{QUERY_STRING} \\?s=([^&]+) [NC]
    RewriteRule ^$ /search/%1/? [NC,R,L]

    I realized today that the quicksearch-function does work, but when I click on “view all results”, the result page is empty. I suppose this has something to do with how your search function handles URLs – it’s just a minor SEO issue…

    Btw. same thing happens when I run a plugin that does the same rewrite (WordPress Nice URLs)

    Greetings,
    Ritchie

    #254192

    Hey datadirt!

    I’m not sure if we can fix this (see http://stackoverflow.com/questions/17082766/wordpress-search-base-rewrite ) but I’ll mark it for Kriesi in case he knows a solution. Tbh I doubt this is a theme issue and probably your plugin won’t work with any theme (i.e TwentyThirteen).

    Cheers!
    Peter

    #254349

    Hi Peter, no, you misunderstood – it’s not a plugin, it’s a rewrite code I put in my htaccess file. It worked with my previous theme (Construct) and with all the WP standard themes.

    #255389

    Hey!

    Oh, ok. Yes, maybe it’s not compatible with Enfold but let’s wait for Kriesi’s feedback.

    Cheers!
    Peter

    #262563

    Hi!

    Found the problem. will be fixed with the next update ;)

    Best regards,
    Kriesi

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.