I hereby claim:
- I am serkanalgur on github.
- I am serkanalgur (https://keybase.io/serkanalgur) on keybase.
- I have a public key ASAv-TnWF_KlWby-B56ClRSqfy6R4Hb7MpgzgqPk0XX_9Ao
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| ######################################################################## | |
| # OPTIMAL .htaccess FILE FOR SPEED AND SECURITY @Version 2019 | |
| # ---------------------------------------------------------------------- | |
| # @Author: Andreas Hecht | |
| # @Author URI: https://andreas-hecht.com | |
| # License: GNU General Public License v2 or later | |
| # License URI: http://www.gnu.org/licenses/gpl-2.0.html | |
| ######################################################################## | |
| /* Begin 960.css 12 and 16 column minified, 10-27-10 via 960-Grid-System at GitHub | |
| * Licensed under GPL and MIT licenses, just like the original 960 Grid | |
| * Adaptive media queries created by Adam Johnson. @adamj_design | http://adamjohnsondesign.com | |
| */ | |
| body{min-width:960px}.container_12,.container_16,.container_24{margin-left:auto;margin-right:auto;width:960px}.grid_1,.grid_2,.grid_3,.grid_4,.grid_5,.grid_6,.grid_7,.grid_8,.grid_9,.grid_10,.grid_11,.grid_12,.grid_13,.grid_14,.grid_15,.grid_16,.grid_17,.grid_18,.grid_19,.grid_20,.grid_21,.grid_22,.grid_23,.grid_24{display:inline;float:left;margin-left:10px;margin-right:10px}.push_1,.pull_1,.push_2,.pull_2,.push_3,.pull_3,.push_4,.pull_4,.push_5,.pull_5,.push_6,.pull_6,.push_7,.pull_7,.push_8,.pull_8,.push_9,.pull_9,.push_10,.pull_10,.push_11,.pull_11,.push_12,.pull_12,.push_13,.pull_13,.push_14,.pull_14,.push_15,.pull_15{position:relative}.container_12 .grid_3,.container_16 .grid_4{width:220px}.container_12 .grid_6,.container_16 .grid_8{width:460px}.containe |
| <?php | |
| /* | |
| Term Archive Pages: | |
| - http://example.com/recipes/dinner/ | |
| - http://example.com/recipes/breakfast,brunch/ | |
| Single Recipe Pages: | |
| - http://example.com/recipes/dinner/soup-title/ |
These are my notes basically. At first i created this gist just as a reminder for myself. But feel free to use this for your project as a starting point. If you have questions you can find me on twitter @thomasf https://twitter.com/thomasf This is how i used it on a Debian Wheezy testing (https://www.debian.org/releases/testing/)
Discuss, ask questions, etc. here https://news.ycombinator.com/item?id=7445545
| <?php | |
| //Aşağıdaki kodlar functions.php içine eklenecek | |
| add_action( 'generate_rewrite_rules', 'ilan_ek_kurallar_temiz' ); | |
| function ilan_ek_kurallar_temiz( $wp_rewrite ) { | |
| $new_rules = array( | |
| 'products/([^/]+)/?$' => 'index.php?sehir=' . $wp_rewrite->preg_index( 1 ), | |
| 'products/([^/]+)/([^/]+)/?$' => 'index.php?post_type=ilan&sehir=' . $wp_rewrite->preg_index( 1 ) . '&ilan=' . $wp_rewrite->preg_index( 2 ), | |
| 'products/([^/]+)/([^/]+)/page/(\d{1,})/?$' => 'index.php?post_type=ilan&sehir=' . $wp_rewrite->preg_index( 1 ) . '&paged=' . $wp_rewrite->preg_index( 3 ), | |
| 'products/([^/]+)/([^/]+)/([^/]+)/?$' => 'index.php?post_type=ilan&sehir=' . $wp_rewrite->preg_index( 2 ) . '&ilan=' . $wp_rewrite->preg_index( 3 ), |
| @media screen and (min-width: 480px) { | |
| body { | |
| background-color: lightgreen; | |
| } | |
| } |
| <-- HTML --> | |
| <figure> | |
| <video src="_assets/video/sample.webm" controls autoplay | |
| width="400" | |
| height="300" | |
| id="video-ornek" | |
| data-description="web video örneği"> | |
| tarayıcınız video etiketini desteklememekte </video> | |
| <legend></legend> | |
| </figure> |
| <-- HTML --> | |
| <figure> | |
| <video src="_assets/video/sample.webm" controls autoplay | |
| width="400" | |
| height="300" | |
| id="video-ornek" | |
| data-description="web video örneği"> | |
| tarayıcınız video etiketini desteklememekte </video> | |
| <legend></legend> | |
| </figure> |
| <?php | |
| // Get user IP in WordPress | |
| function get_the_user_ip() { | |
| if ( ! empty( $_SERVER['HTTP_CLIENT_IP'] ) ) { | |
| //check ip from share internet | |
| $ip = $_SERVER['HTTP_CLIENT_IP']; | |
| } elseif ( ! empty( $_SERVER['HTTP_X_FORWARDED_FOR'] ) ) { | |
| //to check ip is pass from proxy | |
| $ip = $_SERVER['HTTP_X_FORWARDED_FOR']; |