Jump to content
ajkay

BLOG MODULE URL FRIENDLY URL'S

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

Share this post


Link to post
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>

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More