/webmasters/community?hl=en
This content is likely not relevant anymore. Try searching or browse recent questions.
-
10/1/19
301 redirect in .htaccess 2 Recommended Answers 5 Replies 2 Upvotes
1 Recommended Answer
$0 Recommended Answers
Hello,
I have a question whether this redirection in .htaccess is correct / correct?
It's about redirecting without www to https://silk.pl and index.html to silk.pl and generally SEO validity

RewriteEngine On

RewriteCond% {HTTP_HOST} ^ www.silk.pl (. *) [NC]
RewriteRule ^ (. *) $ https://silk.pl/$1 [R = 301, L]
RewriteRule ^ index.html $ https://silk.pl/ [R = 301, L]

or maybe

RewriteEngine On

RewriteCond% {THE_REQUEST} ^. * / Index.html
RewriteRule ^ index.html $ https://silk.pl/ [R = 301, L]

RewriteCond% {HTTP_HOST} ^ www.silk.pl (. *) [NC]
RewriteRule ^ (. *) $ Https://silk.pl/$1 [R = 301, L]

which one is better, more correct?
Thank you in advance for your response
Details
All Replies (5)
10/1/19
Dont now if it just got currupted when pasted into this forum, but spaces seem messed up
 
This looks better to me
 
RewriteRule ^index.html$ https://silk.pl/ [R=301, L]
 
RewriteCond %{HTTP_HOST} ^www.silk.pl [NC]
RewriteRule ^(.*)$ https://silk.pl/$1 [R=301, L]
 
 
Also put the index.html one first, to avoid a redirect chain. eg accesing 
https://www.silk.pl/index.html
would of first redirected to 
https://silk.pl/index.html
then a SECOND redirect 
https://silk.pl/
marked this as an answer
Helpful?
-
10/1/19
Z przekierowaniami myślę ze się uporałem (zainstalowałem moda do Wordpress i strona się poprawnie wyświetla nie mam już problemu z https, www)

 mam jeszcze pytanie odnośnie optymalizacji długości adresów url 

obecnie stosuje dość długie url
np

zawierają one w nazwie opcje produktów 

czy 


będzie lepszy jeżeli chodzi o optymalizacje, strona jest w trakcie tworzenia dodaje kolejne produkty jak sądzicie?
marked this as an answer
Helpful?
10/1/19
tam masz kilka poszewek w ofercie.
Jakos musisz podzielic nazwy adresów

/biała-jedwabna-poszewa
/rozowa....
/mala-biala...

Poszukaj słów kluczowych odpowiednich dla Twojej branży w ten sposób zbuduj nazwy adresów url
marked this as an answer
Helpful?
This question is locked and replying has been disabled.
Discard post? You will lose what you have written so far.
Write a reply
10 characters required
Failed to attach file, click here to try again.
Discard post?
You will lose what you have written so far.
Personal information found

We found the following personal information in your message:

This information will be visible to anyone who visits or subscribes to notifications for this post. Are you sure you want to continue?

A problem occurred. Please try again.
Create Reply
Edit Reply
Delete post?
This will remove the reply from the Answers section.
Notifications are off
Your notifications are currently off and you won't receive subscription updates. To turn them on, go to Notifications preferences on your Profile page.
Report abuse
Google takes abuse of its services very seriously. We're committed to dealing with such abuse according to the laws in your country of residence. When you submit a report, we'll investigate it and take the appropriate action. We'll get back to you only if we require additional details or have more information to share.

Go to the Legal Help page to request content changes for legal reasons.

Reported post for abuse
Unable to send report.
Report post
Questions about a different Google product are no longer considered off-topic and should be moved to the relevant community.
Google takes abuse of its services very seriously. We're committed to dealing with such abuse according to the laws in your country of residence. When you submit a report, we'll investigate it and take the appropriate action. We'll get back to you only if we require additional details or have more information to share.

Go to the Legal Help page to request content changes for legal reasons.

Reported post for abuse
Unable to send report.
This reply is no longer available.
/webmasters/threads
//accounts.google.com/ServiceLogin
You'll receive email notifications for new posts at
Unable to delete question.
Unable to update vote.
Unable to update subscription.
You have been unsubscribed
Deleted
Unable to delete reply.
Removed from Answers
Marked as Recommended Answer
Removed recommendation
Undo
Unable to update reply.
Unable to update vote.
Thank you. Your response was recorded.
Unable to undo vote.
Thank you. This reply will now display in the answers section.
Link copied
Locked
Unlocked
Unable to lock
Unable to unlock
Pinned
Unpinned
Unable to pin
Unable to unpin
Marked
Unmarked
Unable to mark
Reported as off topic
/webmasters/profile/0?hl=en