This is probably very simple..
But
how do i set a page as my home page....

say i wanted as my home page....

how do i do this?

Dani AI

Generated

A quick clarification: changing a browser's home page or bookmarking a site (as and pointed out) only affects that visitor's machine. To make the site root (todaysfishing.com) actually deliver the forums page to all visitors, the change has to happen on the server or in the hosting configuration rather than in individual browsers.

For best results (SEO, link equity and user experience) serve a server-side permanent redirect (HTTP 301) from the site root to /forums/. Common, safe options for different environments:

# Apache (in .htaccess or server config)
Redirect 301 / /forums/
# Nginx (inside the server block)
return 301 https://www.todaysfishing.com/forums$request_uri;
# Simple index script (if using PHP)
<?php
header("HTTP/1.1 301 Moved Permanently");
header("Location: /forums/");
exit;
?>

After implementing a redirect, confirm behavior with a HEAD request (look for a 301 status and a Location header), check both www and non-www variants, and watch server logs for redirect loops. Update the XML sitemap and any internal links that point to the old root, and set canonical tags so search engines index the preferred URL. A server-side 301 is preferable to the meta-refresh or JavaScript redirects suggested earlier by and — those work as fallbacks but are worse for SEO and can be unreliable for some bots.

If direct server access is not available, the hosting control panel often provides a Redirects option (choose 301), or the hosting provider can implement the redirect.

Recommended Answers

All 6 Replies

if you have internet explorer do this:
-on the menu select Tools
-then Internet Options...
-then you'll see a text box where you can enter the address you want

Did you mean in html code??

oh im sorry.. I'm talking about how do i set .. so that when you type into a web browser.. the forums page pops up...

You just have to add to your favourites so that you can access the site in two easy clicks :) .... easy na ;)

Option 1:

Create a page - index.html. Put it in your main webroot ex: . In that index.html put this in your header:

<head>
<meta http-equiv="refresh" content="0;URL=" />
</head>

If you choose this option you could add some text in <h1> tags for seo purposes. Leave the text black and set the background black and the user just sees a flash of black and then the forum, but the search engine would see your seo optimized text.

Option 2: (the better option really, but more complicated possibly)

If you are on an Apache server you can use mod_rewrite. You could add something like this to your .htaccess file:

RewriteEngine  on

RewriteCond %{HTTP_HOST}   !^www\.todaysfishing\.com [NC]
RewriteCond %{HTTP_HOST}   !^$
RewriteRule ^(.*)          [L,R]

I'm not that great with mod_rewrite so the above may need some modification. There is a nice tutorial on mod_rewrite here

This is probably very simple..
But
how do i set a page as my home page....

say i wanted as my home page....

how do i do this?

Hi,

You must know that index.htm or html is the first thing seen on a website. So, rename the forum (put it in PLACE of the existing index) as the "index.html" and then everything links from there, put a "Home" or "Begin" link in the forum... Looks like you have to shuffle things around a bit but what you want to BE SEEN FIRST must be index.html. Other sub directories need their own index page too.

Actually, the way it is takes 'em there... just don't look good as your URL.

Leo-D

This is probably very simple..
But
how do i set a page as my home page....

say i wanted as my home page....

how do i do this?

++++++++++++++++++++++++++
Ok, Leo-D back again.

Here is what U need.

A Re-direct code.

My site was in Google but it showed/opened the wrong page (5th pg!). So I added a 'a' to the end and used that, readjusting all my menu links (foo-a.html). To the original page (foo.html) I added the re-direct and had it go to index. So foo is only there to re-direct because of the bad listing.

Get it?

This is from htmlgoodies.com newsletter. I think... It has a QnA.

Here is the answer you need. There is a problem tho, it is so fast you can't view source to make any changes!!! The answer is ALWAYS KEEP A TEXT ONLY COPY!!!!!!! Then make changes, then save as foo.html or ?

This is it... have fun. Remember, save a TEXT COPY!!!

A. You could use setTimeout() to perform a function to redirect after so many milliseconds. Here is an example that will redirect to the specified link after 2000 milliseconds (2 seconds):
<script>
<!--
function Redirect(linkid)
{
top.location.href=linkid
}
if (screen.width<=640)
setTimeout('Redirect("index640.html")',2000);
if (screen.width<=800)
setTimeout('Redirect("index800.html")',2000);
if (screen.width<=1024)
setTimeout('Redirect("index1024.html")',2000)
top.location.href="index1280.html";
//-->
</script>

Any problems, goto htmlgoodies.com

Leo-D :mrgreen:

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.