RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_METHOD} !=POST
RewriteCond %{THE_REQUEST} " /(index\.php|([^?]*)\.php)"
RewriteRule ^ http://www.site.ru/%2 [R=301,L,NE]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ http://www.site.ru/$1 [R=301,L]
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^(.*)$ http://www.site.ru/$1 [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php [L]
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
RewriteEngine On
RewriteBase /
RewriteCond %{THE_REQUEST} " /(index\.php|([^?]*)\.php)"
RewriteRule ^ /%2 [R=301,L,NE]
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
в итоге восстановить можно только через месяц
class Example {
constructor() {
this.date = Date.now();
}
}
const o = new Example;
o.date //1548185841559 Unix time(миллисекунды)
const obj = {date: Date.now()};
<select>
...
<option id = 'setthisvalue' ...>...</option>
...
</select>
$( function() {
if ( location.hash.indexOf( 'setthisvalue' ) > -1 )
$( '#setthisvalue' ).attr( 'selected', true );
} )
$( function() {
$( location.hash ).attr( 'selected', true );
} )
<select>
...
<option onload = "this.selected = location.hash === '#setthisvalue'" ...>...</option>
...
</select>
<td class="sr-page__list__item_img">
<? if( $v['imgs'] ): ?>
<span class="rel inlblk">
<a title="<?= $v['title'] ?>" href="<?= $v['link'] ?>" class="thumb stack rel inlblk">
<img alt="<?= $v['title'] ?>" src="<?= $v['img_s'] ?>" class="rel br2 zi3 shadow" />
<? if( $v['imgs'] > 1 ): ?>
<span class="abs border b2 shadow"> </span>
<span class="abs border r2 shadow"> </span>
<? endif; ?>
<? else: ?>
<img class="rel br2 zi3 shadow" src="def-m.png" alt="Алиса">
</a>
</span>
<? endif; ?>
</td>