which URL will take search engine for SEO [closed]












-2















I'm confusing which URL will a search engine see.



In my product search page, the product URL will be "mysite.com/detail.php?pid=123&cat=main&subcat=sub"



when we click this it will redirect to "mysite.com/detail/123/main/sub". ( using .htaccess to redirect like this)



which URL will take search engine for SEO? if search engine wants to take this URL 'mysite.com/detail/123/main/sub' what should I do?










share|improve this question













closed as off-topic by tripleee, Suraj Rao, Vega, Funk Forty Niner, ewolden Nov 22 '18 at 13:29


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Questions about general computing hardware and software are off-topic for Stack Overflow unless they directly involve tools used primarily for programming. You may be able to get help on Super User." – tripleee, Suraj Rao, Vega, Funk Forty Niner, ewolden

If this question can be reworded to fit the rules in the help center, please edit the question.














  • If you want the URL to be /detail/123/main/sub, then that is what you should output inside your HTML to begin with.

    – misorude
    Nov 22 '18 at 11:45











  • I think Google can handle this scenario and your SEO score will not suffer from this solution. Even though I suggest to solve url aliases in application router's logic rather than in web server configuration.

    – Dejv
    Nov 22 '18 at 11:50











  • do you mean this is what your hypertext has? <a href="mysite.com/detail/123/main/sub">mysite.com/detail.php?pid=123&cat=main&subcat=sub</a> or do you have mysite.com/detail.php?pid=123&cat=main&subcat=sub in href and the .htaccess redirects to beautified url? If your .htaccess is redirecting to beautified url, why now have it in the href?

    – new_user
    Nov 22 '18 at 11:51











  • I couldn't change all of those places since it will affect other functionalities. so I changed the URL like 'mysite.com/detail.php?pid=123&cat=main&subcat=sub' and then redirect it to 'mysite.com/detail/123/main/sub'. may I know in this scenario which URL will search engine look?

    – ammni
    Nov 22 '18 at 11:52











  • thanks for all the replies.

    – ammni
    Nov 22 '18 at 11:57
















-2















I'm confusing which URL will a search engine see.



In my product search page, the product URL will be "mysite.com/detail.php?pid=123&cat=main&subcat=sub"



when we click this it will redirect to "mysite.com/detail/123/main/sub". ( using .htaccess to redirect like this)



which URL will take search engine for SEO? if search engine wants to take this URL 'mysite.com/detail/123/main/sub' what should I do?










share|improve this question













closed as off-topic by tripleee, Suraj Rao, Vega, Funk Forty Niner, ewolden Nov 22 '18 at 13:29


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Questions about general computing hardware and software are off-topic for Stack Overflow unless they directly involve tools used primarily for programming. You may be able to get help on Super User." – tripleee, Suraj Rao, Vega, Funk Forty Niner, ewolden

If this question can be reworded to fit the rules in the help center, please edit the question.














  • If you want the URL to be /detail/123/main/sub, then that is what you should output inside your HTML to begin with.

    – misorude
    Nov 22 '18 at 11:45











  • I think Google can handle this scenario and your SEO score will not suffer from this solution. Even though I suggest to solve url aliases in application router's logic rather than in web server configuration.

    – Dejv
    Nov 22 '18 at 11:50











  • do you mean this is what your hypertext has? <a href="mysite.com/detail/123/main/sub">mysite.com/detail.php?pid=123&cat=main&subcat=sub</a> or do you have mysite.com/detail.php?pid=123&cat=main&subcat=sub in href and the .htaccess redirects to beautified url? If your .htaccess is redirecting to beautified url, why now have it in the href?

    – new_user
    Nov 22 '18 at 11:51











  • I couldn't change all of those places since it will affect other functionalities. so I changed the URL like 'mysite.com/detail.php?pid=123&cat=main&subcat=sub' and then redirect it to 'mysite.com/detail/123/main/sub'. may I know in this scenario which URL will search engine look?

    – ammni
    Nov 22 '18 at 11:52











  • thanks for all the replies.

    – ammni
    Nov 22 '18 at 11:57














-2












-2








-2








I'm confusing which URL will a search engine see.



In my product search page, the product URL will be "mysite.com/detail.php?pid=123&cat=main&subcat=sub"



when we click this it will redirect to "mysite.com/detail/123/main/sub". ( using .htaccess to redirect like this)



which URL will take search engine for SEO? if search engine wants to take this URL 'mysite.com/detail/123/main/sub' what should I do?










share|improve this question














I'm confusing which URL will a search engine see.



In my product search page, the product URL will be "mysite.com/detail.php?pid=123&cat=main&subcat=sub"



when we click this it will redirect to "mysite.com/detail/123/main/sub". ( using .htaccess to redirect like this)



which URL will take search engine for SEO? if search engine wants to take this URL 'mysite.com/detail/123/main/sub' what should I do?







php .htaccess






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 22 '18 at 11:43









ammniammni

87




87




closed as off-topic by tripleee, Suraj Rao, Vega, Funk Forty Niner, ewolden Nov 22 '18 at 13:29


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Questions about general computing hardware and software are off-topic for Stack Overflow unless they directly involve tools used primarily for programming. You may be able to get help on Super User." – tripleee, Suraj Rao, Vega, Funk Forty Niner, ewolden

If this question can be reworded to fit the rules in the help center, please edit the question.




closed as off-topic by tripleee, Suraj Rao, Vega, Funk Forty Niner, ewolden Nov 22 '18 at 13:29


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Questions about general computing hardware and software are off-topic for Stack Overflow unless they directly involve tools used primarily for programming. You may be able to get help on Super User." – tripleee, Suraj Rao, Vega, Funk Forty Niner, ewolden

If this question can be reworded to fit the rules in the help center, please edit the question.













  • If you want the URL to be /detail/123/main/sub, then that is what you should output inside your HTML to begin with.

    – misorude
    Nov 22 '18 at 11:45











  • I think Google can handle this scenario and your SEO score will not suffer from this solution. Even though I suggest to solve url aliases in application router's logic rather than in web server configuration.

    – Dejv
    Nov 22 '18 at 11:50











  • do you mean this is what your hypertext has? <a href="mysite.com/detail/123/main/sub">mysite.com/detail.php?pid=123&cat=main&subcat=sub</a> or do you have mysite.com/detail.php?pid=123&cat=main&subcat=sub in href and the .htaccess redirects to beautified url? If your .htaccess is redirecting to beautified url, why now have it in the href?

    – new_user
    Nov 22 '18 at 11:51











  • I couldn't change all of those places since it will affect other functionalities. so I changed the URL like 'mysite.com/detail.php?pid=123&cat=main&subcat=sub' and then redirect it to 'mysite.com/detail/123/main/sub'. may I know in this scenario which URL will search engine look?

    – ammni
    Nov 22 '18 at 11:52











  • thanks for all the replies.

    – ammni
    Nov 22 '18 at 11:57



















  • If you want the URL to be /detail/123/main/sub, then that is what you should output inside your HTML to begin with.

    – misorude
    Nov 22 '18 at 11:45











  • I think Google can handle this scenario and your SEO score will not suffer from this solution. Even though I suggest to solve url aliases in application router's logic rather than in web server configuration.

    – Dejv
    Nov 22 '18 at 11:50











  • do you mean this is what your hypertext has? <a href="mysite.com/detail/123/main/sub">mysite.com/detail.php?pid=123&cat=main&subcat=sub</a> or do you have mysite.com/detail.php?pid=123&cat=main&subcat=sub in href and the .htaccess redirects to beautified url? If your .htaccess is redirecting to beautified url, why now have it in the href?

    – new_user
    Nov 22 '18 at 11:51











  • I couldn't change all of those places since it will affect other functionalities. so I changed the URL like 'mysite.com/detail.php?pid=123&cat=main&subcat=sub' and then redirect it to 'mysite.com/detail/123/main/sub'. may I know in this scenario which URL will search engine look?

    – ammni
    Nov 22 '18 at 11:52











  • thanks for all the replies.

    – ammni
    Nov 22 '18 at 11:57

















If you want the URL to be /detail/123/main/sub, then that is what you should output inside your HTML to begin with.

– misorude
Nov 22 '18 at 11:45





If you want the URL to be /detail/123/main/sub, then that is what you should output inside your HTML to begin with.

– misorude
Nov 22 '18 at 11:45













I think Google can handle this scenario and your SEO score will not suffer from this solution. Even though I suggest to solve url aliases in application router's logic rather than in web server configuration.

– Dejv
Nov 22 '18 at 11:50





I think Google can handle this scenario and your SEO score will not suffer from this solution. Even though I suggest to solve url aliases in application router's logic rather than in web server configuration.

– Dejv
Nov 22 '18 at 11:50













do you mean this is what your hypertext has? <a href="mysite.com/detail/123/main/sub">mysite.com/detail.php?pid=123&cat=main&subcat=sub</a> or do you have mysite.com/detail.php?pid=123&cat=main&subcat=sub in href and the .htaccess redirects to beautified url? If your .htaccess is redirecting to beautified url, why now have it in the href?

– new_user
Nov 22 '18 at 11:51





do you mean this is what your hypertext has? <a href="mysite.com/detail/123/main/sub">mysite.com/detail.php?pid=123&cat=main&subcat=sub</a> or do you have mysite.com/detail.php?pid=123&cat=main&subcat=sub in href and the .htaccess redirects to beautified url? If your .htaccess is redirecting to beautified url, why now have it in the href?

– new_user
Nov 22 '18 at 11:51













I couldn't change all of those places since it will affect other functionalities. so I changed the URL like 'mysite.com/detail.php?pid=123&cat=main&subcat=sub' and then redirect it to 'mysite.com/detail/123/main/sub'. may I know in this scenario which URL will search engine look?

– ammni
Nov 22 '18 at 11:52





I couldn't change all of those places since it will affect other functionalities. so I changed the URL like 'mysite.com/detail.php?pid=123&cat=main&subcat=sub' and then redirect it to 'mysite.com/detail/123/main/sub'. may I know in this scenario which URL will search engine look?

– ammni
Nov 22 '18 at 11:52













thanks for all the replies.

– ammni
Nov 22 '18 at 11:57





thanks for all the replies.

– ammni
Nov 22 '18 at 11:57












1 Answer
1






active

oldest

votes


















-1














Google will take (to use in SERP) second one (real URL on final page) not just pointing version of URL.



But your pages can be seen on SERP later and on lower positions (page with no no-redirected pointers for them).



You should make all links use final URL version.






share|improve this answer






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    -1














    Google will take (to use in SERP) second one (real URL on final page) not just pointing version of URL.



    But your pages can be seen on SERP later and on lower positions (page with no no-redirected pointers for them).



    You should make all links use final URL version.






    share|improve this answer




























      -1














      Google will take (to use in SERP) second one (real URL on final page) not just pointing version of URL.



      But your pages can be seen on SERP later and on lower positions (page with no no-redirected pointers for them).



      You should make all links use final URL version.






      share|improve this answer


























        -1












        -1








        -1







        Google will take (to use in SERP) second one (real URL on final page) not just pointing version of URL.



        But your pages can be seen on SERP later and on lower positions (page with no no-redirected pointers for them).



        You should make all links use final URL version.






        share|improve this answer













        Google will take (to use in SERP) second one (real URL on final page) not just pointing version of URL.



        But your pages can be seen on SERP later and on lower positions (page with no no-redirected pointers for them).



        You should make all links use final URL version.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 22 '18 at 11:52









        KhazulKhazul

        1566




        1566















            Popular posts from this blog

            404 Error Contact Form 7 ajax form submitting

            How to know if a Active Directory user can login interactively

            TypeError: fit_transform() missing 1 required positional argument: 'X'