Advertisement:

Recent Posts

Pages: 1 2 3 [4] 5 6 ... 10
31
Con o sin www no hace diferencia en cierta manera pero si accedes con ambos si lo toma duplicado, basicamente no tiene diferir agregando www o el mismo https. En esa redireccion estas diciendo que la unica url va a ser https://misitio.com y toda url con www o sin ella ademas de la conexion segura o no, en pocas palabras tenes agregar "s" por que estas declarando es la url matriz y unida del sitio.


Saludos!
32
SMF Coding Discussion / Re: how to add addthis code manually?
« Last post by shadav on Yesterday at 06:40:52 PM »
remember to wrap it with
Code: [Select]
echo '
CODE
';
otherwise you'll end up with template errors, unless you are adding it inside an echo already....

it depends on where you are trying to display it at
33
SMF 2.0.x Support / Re: php 7.1 going away soon
« Last post by lurkalot on Yesterday at 06:40:31 PM »
My site, notthenoobs.com,  is built on 2.0.15 and I signed up with Gray Web hosting.  This is on php 7.3. Is that likely to be a problem?

7.1 is the highest version 2.0.15 supports.  You should be able to select 7.1 in your cPanel. 
34
Si tengo abierto el archivo pero no ubico donde agregar el codigo:

Code: [Select]
function template_body_above()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;

echo '
<div id="mainframe"', !empty($settings['forum_width']) ? ' style="width: ' . $settings['forum_width'] . '"' : '', '>
<div class="tborder">
<div class="catbg">
<img class="floatright" id="smflogo" src="', $settings['images_url'], '/logo50gsm.png" alt="50GSM FORO" />
<h1 id="forum_name">';

if (empty($context['header_logo_url_html_safe']))
echo $context['forum_name_html_safe'];
else
echo '
<img src="', $context['header_logo_url_html_safe'], '" alt="', $context['forum_name_html_safe'], '" />';

echo '
</h1>
</div>';
35
Si Google me dice que para el la url canonica es sin www, pues al considerar que es un sitio nuevo, apanes en proceso de SEO, preferi resolver esto dejando mi sitio sin www. Pase el repair_settins y correji rutas y listo, creo que fue lo mejor.

Ahora para evitar contenido duplicado ocupo un redirijir 301 de www a sin www, pero mi duda es el codigo debe llevar el https o solo http?? Hago mi pregunta por que mi web usa https...

Code: [Select]
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.midominio.com [NC]
RewriteRule ^(.*)$ http(debe llevar la "s" aqui?)://midominio.com/$1 [L,R=301]
36
En la mayoria de temas responsivos pasaba lo mismo, al dar clic en cargar scripts se eliminaba el https

Entonces alguna url esta mixta o no tenes todo apuntado al modo seguro, me ah pasado muchas veces se tiene editar manualmente las url de los themes para quede seguro aunque puede ser alguna imagen no este con el https. Deberia hacerlo sino mal recuerdo en el SMF Core sino simplemente se tiene agregar una linea en el index.template del diseño...


Saludos!
37
SMF 2.0.x Support / Re: php 7.1 going away soon
« Last post by nidec on Yesterday at 05:19:24 PM »
My site, notthenoobs.com,  is built on 2.0.15 and I signed up with Gray Web hosting.  This is on php 7.3. Is that likely to be a problem?
38
Server Performance and Configuration / Re: php-fpm 100% CPU with SMF
« Last post by Arantor on Yesterday at 05:12:57 PM »
That does somewhat suggest there is a configuration problem if it only happened after the reboot, but I'd still wonder how frequently those IPs are hitting the server? Actual numbers of hits per second would be interesting data.
39
Server Performance and Configuration / Re: php-fpm 100% CPU with SMF
« Last post by sah62 on Yesterday at 05:07:13 PM »
I use PHP-FPM for 3 other sites on the same server. Each has it's own pool. I have the site in maintenance mode right now and the CPU situation is under control, but my users won't be very happy about that for long.

It's not the multiple processes I'm concerned about. I understand that's normal. What's concerning is that the processes for this one pool are consuming all of the available CPU to the detriment of everything else that's running on the server. The CPU load didn't spike until after the server was rebooted. I watch it pretty closely and haven't seen this before. When I count the unique IP addresses that appear in my nginx access log, these appear at the top (count followed by IP address):

Code: [Select]
331 40.77.167.53
310 207.46.13.45
309 40.77.167.48
281 40.77.167.51
277 40.77.167.40
249 157.55.39.159
236 207.46.13.76
174 216.244.66.229
161 157.55.39.136

All crawlers, and all but one of those addresses are in space owned by Microsoft. I could add each of those addresses to my firewall to block them, but is that the best thing to do?
40
SMF 2.0.x Support / Re: php 7.1 going away soon
« Last post by Sir Osis of Liver on Yesterday at 05:03:24 PM »
You can move to a better host.  My host supports php 5.3 - 7.3, currently running 7.2 native.  I sometimes use early versions to salvage damaged 1.1 databases, so it's a necessity for me.
Pages: 1 2 3 [4] 5 6 ... 10