Hello, how are you?
I need the url of my homepage to look like this: link url of the home page is appearing like this: link
A second page appears as the initial page: link
I would like the second page to look like this: link ie I would hide the sourceId = 78902565 and in the location of categoryId = 5 there would appear super-offers.
On all other pages, the sourceId = 78902565 appears, I would like to hide it in a way that would not hurt my sales and in the location of categoryId the names of the respective categories appear, such as:
I would like it to appear:
My .htaccess looks like this:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
</IfModule>
My index.php looks like this:
<?php
function getHome(){
$url = (isset($_GET['url'])) ? $_GET['url']: ('home');
$url = array_filter(explode('/',$url));
$file = ('pgs/'.$url[0].'.php');
if(is_file($file)){
include $file;
}else{
include('pgs/'.'home'.'.php');
};
if((null== $file) || ('pgs/'.$url[0].'.php')== '' || ($_GET['url']) === false){
include('pgs/'.'404'.'.php');
exit();
};
};
getHome();
?>
Other pages like: contact and about work normally, just for the offers page I need friendly url (s).
Is it correct for these weird url (s) that appear?
Thanks in advance.