Jump to content

BLOG MODULE URL FRIENDLY URL'S


ajkay

Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...