I am trying to set the AheadWorks blog module as homepage of Magento 2 for a site. So user gets directly to domain.com/blog instead of domain.com. Is it possible in the admin or Nginx somehow?

  • Write 301 redirection in .htaccess – Prathap Gunasekaran Jun 14 at 6:56
  • I use nginx. Dont have .htaccess – Kaki Sami Jun 14 at 6:56
  • Oh ok can u help with the correct code for redirect? – Kaki Sami Jun 14 at 7:03
  • nginx dont care about .htaccess – MagenX Jun 14 at 9:05

Try this,

You can add it in the /etc/nginx/nginx.conf file

add the below code to it

server {

listen 80
listen 443;

server_name blog.club.in;

location = / {
    return 301 http://domain.com/blog;

NOTE : Make sure you choose to move this temporarily or permanent. Temporary in the sense use 302 instead of 301

Visit this link for more information and multi domain configuration as well.

Hope this helps.

  • the question about nginx , not apache, there is nothing to do with .htaccess – MagenX Jun 14 at 9:03
  • you return every request, not redirecting to /blog. – MagenX Jun 14 at 12:20

I solved it this way:

Configuration —->>> general —->> web

Default url = changed value from cms to aw_blog

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.