Welcome! Log In Create A New Profile

Advanced

SEO friendly urls.

Posted by sp436 
SEO friendly urls.
June 13, 2012 06:25PM
I need to convert Sphider search expression into a SEO friendly urls.
I'm using version 1.3.5 Sphider

Sample: http://www.example.com/search.php?query=Noticias&search=1

Desired result: http://www.example.com/noticias.html

I have in the .htaccess.:

<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{QUERY_STRING} ^(query=.*)%20(.*)
RewriteRule ^search\.php$ search.php?%1+%2 [N]

RewriteCond %{QUERY_STRING} ^query=([^&]+)&search=1$
RewriteRule ^search\.php$ /%1.html? [R=301,L]
RewriteCond %{QUERY_STRING} ^query=([^&]+)&search=1&start=([0-9]+)$
RewriteRule ^search\.php$ /%2/%1.html? [R=301,L]

RewriteRule ^(.*)%20(.*) /$1+$2 [R=301,L]

RewriteRule ^keywords/([^/]+)/([0-9]+)$ /search.php?query=$1&search=1&start=$2&a=1 [L]
RewriteRule ^keywords/(.*)$ /search.php?query=$1&search=1&a=1 [L]
</IfModule>


I get error:

Not Found

The requested URL /noticias.html was not found on this server.




Edited 2 time(s). Last edit at 06/22/2012 12:30PM by sp436.
Re: Problem with SEO friendly urls. Can someone help me?
June 21, 2012 01:23PM
Can someone help me?
Sorry, only registered users may post in this forum.

Click here to login