which URL will take search engine for SEO [closed]
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
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.
add a comment |
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
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 havemysite.com/detail.php?pid=123&cat=main&subcat=sub
inhref
and the .htaccess redirects to beautified url? If your .htaccess is redirecting to beautified url, why now have it in thehref
?
– 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
add a comment |
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
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
php .htaccess
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 havemysite.com/detail.php?pid=123&cat=main&subcat=sub
inhref
and the .htaccess redirects to beautified url? If your .htaccess is redirecting to beautified url, why now have it in thehref
?
– 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
add a comment |
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 havemysite.com/detail.php?pid=123&cat=main&subcat=sub
inhref
and the .htaccess redirects to beautified url? If your .htaccess is redirecting to beautified url, why now have it in thehref
?
– 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
add a comment |
1 Answer
1
active
oldest
votes
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.
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
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.
add a comment |
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.
add a comment |
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.
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.
answered Nov 22 '18 at 11:52
KhazulKhazul
1566
1566
add a comment |
add a comment |
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 havemysite.com/detail.php?pid=123&cat=main&subcat=sub
inhref
and the .htaccess redirects to beautified url? If your .htaccess is redirecting to beautified url, why now have it in thehref
?– 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