The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Technical SEO Issues
    4. NGINX 301 configuration - it is correct?

    NGINX 301 configuration - it is correct?

    Technical SEO Issues
    1 1 90
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Nemo85
      Nemo85 last edited by

      I'm totally not an expert in Technical Seo... but i am worry that my server admin neither is.

      Below is his vhost configuration, anyone can check this? it's this correct and SEO friendly?

      server {

      listen *:80;

      server_name domainaddress.pl domainaddress.com.pl;

      root /home/www/domainaddress.pl/web;

      index index.html index.htm key-words.php index.php index.cgi index.pl index.xhtml;

      location /key {
      rewrite ^/key-words/$ http://domainaddress.pl/ permanent;
      rewrite ^/key-words.php$ http://domainaddress.pl/ break;
      }

      location / {
      if ($http_host ~ "^www.domainaddress.pl"){
      rewrite ^(.*)$ http://domainaddress.pl/$1 permanent;
      }

      rewrite ^/key-words.php$ http://domainaddress.pl/ permanent;
      }

      }

      1 Reply Last reply Reply Quote 0
      • 1 / 1
      • First post
        Last post
      • To 301 or not to 301?
        iHasco
        iHasco
        1
        4
        70

      • 301 Redirects
        imoprojects
        imoprojects
        0
        7
        138

      • 301 redirect after penalty to domain which currently 301 to the penalised domain
        evolvingSEO
        evolvingSEO
        0
        4
        305

      • Help writing a .htacess file with the correct 301 redirects
        mememax
        mememax
        0
        5
        148

      • Am I using 301 correctly?
        StreamlineMetrics
        StreamlineMetrics
        0
        2
        75

      • How to verify a page-by-page level 301 redirect was done correctly?
        EvolveCreative
        EvolveCreative
        0
        5
        269

      • How can you tell if a 301 has been set up correctly?
        Nobody1560986989723
        Nobody1560986989723
        0
        2
        386

      • 301 Redirect
        Paul78
        Paul78
        0
        6
        637

      Get started with Moz Pro!

      Unlock the power of advanced SEO tools and data-driven insights.

      Start my free trial
      Products
      • Moz Pro
      • Moz Local
      • Moz API
      • Moz Data
      • STAT
      • Product Updates
      Moz Solutions
      • SMB Solutions
      • Agency Solutions
      • Enterprise Solutions
      • Digital Marketers
      Free SEO Tools
      • Domain Authority Checker
      • Link Explorer
      • Keyword Explorer
      • Competitive Research
      • Brand Authority Checker
      • Local Citation Checker
      • MozBar Extension
      • MozCast
      Resources
      • Blog
      • SEO Learning Center
      • Help Hub
      • Beginner's Guide to SEO
      • How-to Guides
      • Moz Academy
      • API Docs
      About Moz
      • About
      • Team
      • Careers
      • Contact
      Why Moz
      • Case Studies
      • Testimonials
      Get Involved
      • Become an Affiliate
      • MozCon
      • Webinars
      • Practical Marketer Series
      • MozPod
      Connect with us

      Contact the Help team

      Join our newsletter
      Moz logo
      © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
      • Accessibility
      • Terms of Use
      • Privacy