How to create seo friendly url How to create seo friendly url How to create seo friendly url How to create seo friendly url How to create seo friendly url How to create seo friendly url How to create seo friendly url

How to create seo friendly url How to create seo friendly url How to create seo friendly url How to create seo friendly url How to create seo friendly url How to create seo friendly url How to create seo friendly url How to create seo friendly url How to create seo friendly url How to create seo friendly url How to create seo friendly url How to create seo friendly url How to create seo friendly url How to create seo friendly url How to create seo friendly url How to create seo friendly url How to create seo friendly url How to create seo friendly url How to create seo friendly url How to create seo friendly url How to create seo friendly url How to create seo friendly url How to create seo friendly url How to create seo friendly url How to create seo friendly url How to create seo friendly url How to create seo friendly url How to create seo friendly url How to create seo friendly url How to create seo friendly url How to create seo friendly url How to create seo friendly url How to create seo friendly url How to create seo friendly url How to create seo friendly url How to create seo friendly url How to create seo friendly url How to create seo friendly url How to create seo friendly url How to create seo friendly url How to create seo friendly url How to create seo friendly url How to create seo friendly url  in php


<?php

error_reporting(0);

// echo "<pre>"; print_r($_SERVER); exit();

include('db_connect.php'); 

// print_r($_SERVER);

// $vchar = substr($_SERVER['QUERY_STRING'], -1);

// if($vchar == '/'){

//     // echo $page ='';

//     // echo '<script type="text/javascript">';

//     // echo 'window.location.href="'.$page.'";';

//     // echo '</script>';

//     require('404.php');

// exit();

// }


$URL = explode('/', $_SERVER['QUERY_STRING']);

$custom_url = $URL[0];

// echo $_SERVER['QUERY_STRING']."<br>";


if ($custom_url == 'seakron' ) {

require('seakron.php');

exit();

}


// ----- fetching store custom url's -----


$store_url_query = "SELECT id, custom_url FROM `store` WHERE store_status = '0' AND custom_url <> ''";

    $qr_commit = mysqli_query($conn, $store_url_query);

    

    $cnt=0;

    while ($res = mysqli_fetch_assoc($qr_commit)) {

   

    $store_custom_url[$cnt] = $res['custom_url'];

    $cnt++;

    }

    



// ----- fetching blog custom url's -----


$blog_url_query = "SELECT id, custom_url FROM `blog` WHERE custom_url <> ''";

    $qr_commit_2 = mysqli_query($conn, $blog_url_query);

    

    $cnt=0;

    while ($res_2 = mysqli_fetch_assoc($qr_commit_2)) {

   

    $blog_custom_url[$cnt] = $res_2['custom_url'];

    $cnt++;

    }   




// ---- work- 


if (in_array($custom_url, $store_custom_url)) {

require('view-store.php');

exit();

}


if (in_array($custom_url, $blog_custom_url)) {

require('blog-single.php');

exit();

}




if ($custom_url == 'blog' ) {


require('blog.php');

exit();

}


if ($custom_url == 'phixman' ) {


require('about-us.php');

exit();

}


// if ($custom_url == 'Stores' ) {


// require_once('stores.php');

// }


if ($custom_url == 'Franchise' ) {


require('franchise.php');

exit();

}




?>


.htaccess



RewriteEngine On

RewriteCond %{SCRIPT_FILENAME} !-f

RewriteCond %{SCRIPT_FILENAME} !-d

RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$

RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/(?:\ Ballot169)?

RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$

RewriteRule ^(.*)$ index.php?$1 [L,QSA]


php_value upload_max_filesize 128M

php_value post_max_size 128M

# php_value max_execution_time 300

# php_value max_input_time 300


Comments

Popular posts from this blog

how manage leads mangement system user and manager auto assign in php how manage leads mangement system user and manager auto assign in php how manage leads mangement system user and manager auto assign in php

How to add date filter in php How to add date filter in php How to add date filter in php How to add date filter in php How to add date filter in php How to add date filter in php How to add date filter in php How to add date filter in php How to add date filter in php How to add date filter in php How to add date filter in php How to add date filter in php How to add date filter in php How to add date filter in php How to add date filter in php How to add date filter in php How to add date filter in php How to add date filter in php How to add date filter in php How to add date filter in php How to add date filter in php How to add date filter in php How to add date filter in php How to add date filter in php How to add date filter in php How to add date filter in php How to add date filter in php How to add date filter in php How to add date filter in php

How to Run a Flask framework in Python How to Run a Flask framework in Python How to Run a Flask framework in Python How to Run a Flask framework in Python How to Run a Flask framework in Python How to Run a Flask framework in Python How to Run a Flask framework in Python