How to start off in website not index wampserver - wamp

How to make it so when people connect to me website they dont start off in the index but in the website
Picture of Index page

Make an index.php file and put the following inside:
<?php
header('location: ./myfile.html'); //edit the file to redirect to here...
?>

Related

How to show in address bar www.domain.com instead of www.domain.com/something

I have website made on opencart CMS, it is one page website, so I made redirect in home.tpl on page www.domain.com/promo (it is product page)
<?php
header("Location: /promo");
exit();
?>
Now when someone opens www.domain.com he see www.domain.com/promo.
How to make him see only www.domain.com?
Go to the index.php file and look for the router coding, it should look similar to the code below:
$action = new Action('common/home');
You will then have to change 'common/home' to the location of the page you created within Opencart.
For example: to navigate to the login page we will have to change it to 'account/login'

Mask forwarded blogger urls to own domain urls

Following Rounin's answer carefully written (thanks a lot) on how to redirect any blogspot urls with any extension to the mydomain.com corresponding URL, now the question is how can I mask the URL?
I mean, once the blogspot URL redirects to the mydomain.com, I want to continue to display the original blogspot URL instead of the mydomain.com.
You can use the following JavaScript snippet for that -
<script>
site = "http://example.com"; // The site which you want to mask, don't add ending slash
iFrame = document.createElement("iframe"); // Creates a iframe via JavaScript
iFrame.setAttribute("src", site + location.pathname); // Set the source of iFrame
iFrame.setAttribute("class", "maskingFrame"); // Add class to iFrame
document.body.appendChild(iFrame); // Append iframe to body of page
</script>
And the bare minimal CSS would be -
body {
overflow:hidden;
}
.maskingFrame, body {
width:100%;
height:100%;
border: none;
}
You can check a demo here (This is the homepage) and here (This is an internal URL from other site which doesn't exist on the original blogspot URL)
In privous answer you redirected page from blogspot to your domain. This causes the url to be changed. But if you want to show contents from another url without changing url it could be done through using .htaccess file.
the code in htaccess file should be like this:
RewriteCond %{HTTP_HOST} ^DomainA.com
RewriteRule ^(.*) http://DomainB.com/$1 [P]
Here you could find more details and info about .htaccess file.
I don't know if it is possible for you to place that file in your blog or not. If you have not access to place this file into your blog you can place it on your domain host, and redirect from your domain to your blogspot page but if ask me I recommend you redirect and encourage people to your own website rather than keeping them using weblog address. You'll not need weblog if you have your own website.

Remove header and footer from Joomla 2.5 home page

I have a Joomla 2.5 page consisting of a logo graphic and an entry button which I want to use as the home page. I've pretty much sorted out how to remove the menu module from this page but I want to remove the header and footer too but I can't see how. I would guess, perhaps wrongly, that changes need to be made in the template (beez20) index.php but what exactly? There seems to be plenty of advice online about removing either header/footer from all pages but not for a single page. Any help would be much appreciated
If header and footer are parts of design and not modules, you have to make an addition to template index.php to disable these parts.
<?php
$app = JFactory::getApplication();
$menu = $app->getMenu();
if ($menu->getActive() != $menu->getDefault()) :
?>
<p> This will be hidden from frontpage </p>
<?php
endif;
?>
You could check this tutorial to help you how to determine if user is viewing the front page for all joomla versions and the addition that is needed for multilingual sites: How to determine if the user is viewing the front page

OpenCart HTML adds quotes

I'm having weird issues with the HTML in the information page. Any HTML I type has \" added to the left and right so the following iframe would turn to this:
Before:
<iframe src="http://www.google.com/"></iframe>
After:
<p><iframe src="\"http://www.google.com/\""></iframe></p>
OpenCart Version: 1.5.5.1
create file at root with dots: .user.ini
put this:
magic_quotes_gpc = Off
and then save
You are typing your code directly into the WYSIWYG side of the editor. This will escape all the html entities like you are seeing.
All you need to do is hit the "Source" button, and put your HTML into this view instead.
I managed to fix this issue by forcing the magic_quotes off in .htaccess:
<IfModule mod_suphp.c>
suPHP_ConfigPath /home/user/public_html
</IfModule>

Opencart how to add php code to product/category description

Does anyone know how to, without purchasing an addon/extension, add php code to the product and category descriptions? If you try to add it automatically gets commented out when you save, e.g. <!-- <?php echo "test" ?> -->
Workaround: For anyone else.. I used borderless iframe to include an external .php file which contained the php code I needed ....