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. Intermediate & Advanced SEO
    4. How to make SEF URL for PHP/MySQL web site

    How to make SEF URL for PHP/MySQL web site

    Intermediate & Advanced SEO
    5 4 4.5k
    • 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.
    • kolio_kolev
      kolio_kolev last edited by

      Hi mozzers!

      I'm fairly new to SEO topic, but I'm learning fast because all of you, so please take my warm thanks first!

      The problem: I have a web site based on PHP/MySQL that has no SEF addresses, it's made by unknown CMS, so I cannot use any extensions or modules, I have to write my own SEF extension.

      The question: Would you suggest me, please an article or idea, what I need to make my URLs search engine friendly? What's best to use: .htaccess or something else?

      This is the aforementioned web site: www.nortrak.bg

      Thanks a lot,

      Kolio

      1 Reply Last reply Reply Quote 0
      • alfredopalconit
        alfredopalconit last edited by

        go look for ways to use mod_rewrite on .htaccess on your site.

        usually, you can change your url from www.example.com/category/index.php?page=bottles to www.example.com/category/index/page/bottles/ or something better like www.example.com/bottles.htm as long as you try and try to experiment.

        1 Reply Last reply Reply Quote 0
        • saibose
          saibose last edited by

          I would suggest that depending on the number of pages, you can either do a htaccess based redirection or an apache mod redirect.

          Here is an article which could help you.

          http://httpd.apache.org/docs/current/mod/mod_rewrite.html

          kolio_kolev 1 Reply Last reply Reply Quote 1
          • kolio_kolev
            kolio_kolev @saibose last edited by

            Thank you Saibose!

            What to do with old URLs that are already in SERP should I make redirection rules separately? I've found two more articles, that clarifies the SEF-topic:

            Explanation of the problem and a tool for generating .htaccess rules

            Two solutions - PHP/MySQL based and .htaccess based

            1 Reply Last reply Reply Quote 0
            • rankmenow
              rankmenow last edited by

              Hello Everyone,

              I'm new here and just getting back into SEO (a little bit) after not doing anything 'myself' for a couple of years.  My question is along the same subject.  Currently my individual URLs show as: https://www.example.com/index.php?l=product_detail&p=107 (dynamic responsive site).

              I can switch it to a static site, so the individual product pages read as:https://www.example.com/catalog/category name/product name-107.html

              It's still a long URL, but it would be keyword rich.  Some of my current dynamic pages are indexed,and due to an upgrade I had to do several months back, I already have some redirects (301) from my php extensions to the one listed above.  This is my long explanation to my following questions:

              1. Does having a dynamic or static site matter when ranking in search engines

              2. I already have some redirects coming my older site to this dynamic site, so I would have to make more directs from the dynamic site to my static site - is this okay to do?

              I'm really at a loss, a couple of years ago, I ranked 1-3 (on Page 1) on Google for all my keywords, (all White Hat work), and now I'm into great abyss of no mans land of the internet (ranked on Page 3+)

              Thank you for any and all help from everyone!

              ~Sandra

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              • I have a metadata issue. My site crawl is coming back with missing descriptions, but all of the pages look like site tags (i.e. /blog/?_sft_tag=call-routing)
                Rajesh.Prajapati
                Rajesh.Prajapati
                0
                2
                43

              • Site migration/ CMS/domain site structure change-no access to search console
                effectdigital
                effectdigital
                0
                4
                52

              • Our Web Site Is candere.com. Its PA and back link status are different for https://www.candere.com, http://www.candere.com, https://candere.com, and http://candere.com. Recently, we have completely move from http to https.
                94501
                94501
                0
                3
                102

              • Domain.com/old-url to domain.com/new-url
                Edzjus333
                Edzjus333
                0
                10
                162

              • Thousands of /img/img/img urls generated by website - where are they coming from?
                McTaggart
                McTaggart
                0
                5
                129

              • Should /node/ URLs be 301 redirect to Clean URLs
                MargaritaS
                MargaritaS
                0
                3
                172

              • What on-page/site optimization techniques can I utilize to improve this site (http://www.paradisus.com/)?
                RyanKent
                RyanKent
                0
                2
                626

              • WWW vs Non-WWW/Moving a site to a new CMS/Redirect all of the previous URLs
                KeriMorgret
                KeriMorgret
                0
                5
                934

              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