ajkay Posted February 10, 2013 Share Posted February 10, 2013 Hi could anyone tell me how i can achieve a seo friendly url using the blog module. The following is an example of what i am getting which to my mind is not SEO friendly and i would imagine that the search engines would have a hard time knowing what this page is all about: e.g: http://www.orchidfashionboutique.co.uk/modules/blockblog/blockblog-post.php?post_id=3 any ideas or suggestions would be great Link to comment Share on other sites More sharing options...
carlosmacias Posted February 13, 2013 Share Posted February 13, 2013 Hi, Put this onto your htaccess file, at the start of the document to prevent the overwritting prestashop rules. <IfModule mod_rewrite.c> RewriteEngine on #blog RewriteRule ^blog/category/([0-9a-zA-Z-_]+)/?$ %{ENV:REWRITEBASE}modules/blockblog/blockblog-category.php?category_id=$1 [QSA,L] RewriteRule ^blog/post/([0-9a-zA-Z-_]+)/?$ %{ENV:REWRITEBASE}modules/blockblog/blockblog-post.php?post_id=$1 [QSA,L] RewriteRule ^blog/?$ %{ENV:REWRITEBASE}modules/blockblog/blockblog-categories.php [QSA,L] </IfModule> Link to comment Share on other sites More sharing options...
ajkay Posted February 13, 2013 Author Share Posted February 13, 2013 Hi thanks for this. I did what you suggested and uploaded this code to the htaccess file at the top and it did not seem to make any difference. Link to comment Share on other sites More sharing options...
carlosmacias Posted February 13, 2013 Share Posted February 13, 2013 Do you have active the "Enable or Disable URL rewriting" option ? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now