Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
662 views
in Q2A Core by
edited by
how to solve this problem ?
Q2A version: 1.81
by
There is no redirect. Why is it a problem for you?
by
i have problem with the indexed by google. Google doesn't see 301 on my page. i have done with this code

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

when i delete www on my ulr www.myurl.com , browser redirect automatic to www. But when i delete www on my post url www.myurl.com/121/post, browser doesn't  do it. How to fix this problem sir ?
by
So you are asking about your own website, and not the Q2A website?
by
yes sir, i try to show the example

1 Answer

0 votes
by

try this one on .htaccess

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}$1 [R=301,L]

I have check above code here, it seems to work: https://htaccess.madewithlove.be/ 

...