• Page 1 of 1
  • 1
Forum moderator: bigblog  
uCoz Community » For Webmasters » Custom Solutions » How to Make Custom Path Container for Various Modules (A 7-step short tutorial.)
How to Make Custom Path Container for Various Modules
CoffeeCone
Posts: 687
Reputation: 41

Message # 1 | 7:08 PM
Have you ever had that certain instance where you want http://your-ucoz-site.com/stuff to also be accessible via http://your-ucoz-site.com/onlinegames BUT, instead of redirecting http://your-ucoz-site.com/onlinegames to http://your-ucoz-site.com/stuff, you want it to stay to being http://your-ucoz-site.com/onlinegames? Well good news, here's a tutorial that will help you add containers to virtually any URL you want. Be it inside your website or to external links, e.g.; http://your-ucoz-site.com/google will contain the Google website inside that URL.

Things you'll need:
- Any plain text editor. (You can't use Microsoft Word or any rich text editor.)
- Access to your uCoz website's File Manager.

Things to do:
1. Open up your text editor (e.g. notepad) and type or copy the code below.

Quote
<html>
<head>
<title>YOUR TITLE</title>
</head>
<frameset rows="*" framespacing="0" border="0" frameborder="NO">
<frame src="http://your-new-url/" name="uCoz_Custom_Page_by_shadowslash" scrolling="auto" noresize>
</frameset>
<noframes>
<body>
Please enable iframes on your browser. Otherwise, click <a href="http://your-new-url/" target="_top">HERE</a> to view this page.
</body>
</noframes>
</html>

On the code above, replace http://your-new-url/ with the one you want and replace YOUR TITLE with the page title you want.

2. Save your file to index.html.

3. On your website's File Manager, create a new folder name it whatever you want, e.g.; onlinegames.

4. Inside your newly created folder, upload your index.html file.

5. Make sure that the file is named index.html.

6. Test out your new url redirection by visiting http://your-ucoz-site/yournewfolder.

7. If you followed everything correctly that should work and you will be redirected to the URL you specified.

This concludes this simple set of instructions on how to set up container for pages on your uCoz website.

Possible Issues:
-> Since this approach uses iframes, to be able to change the actual URL on the address bar (e.g. you want to go back to Home), you need to include the parameter target="_top" to your <a href> links pointing outside of the page you want to contain.
-> Some browsers have iframes disabled but even so, this script is setup to still make the visitor able to view the contents regardless of the browser allowing iframes or not.

Conclusion:
You probably already knew how the above tutorial would work. You might just have overlooked it. smile


"Friends don't let friends use Internet Explorer 6." - Microsoft || Join the cause. Help your friends.


Post edited by shadowslash - Sunday, 2011-02-13, 7:09 PM
Animorph
Posts: 2856
Reputation: 189

Message # 2 | 7:28 PM
shadowslash, isn't this the same tutorial as before ?
To busy building a passive income online ;)
CoffeeCone
Posts: 687
Reputation: 41

Message # 3 | 7:59 PM
Quote (Animorph)
shadowslash, isn't this the same tutorial as before ?

Nope... Try it for yourself and you'll see. smile Also it's explained how the two works. smile

"Friends don't let friends use Internet Explorer 6." - Microsoft || Join the cause. Help your friends.


BriCo84
Posts: 5
Reputation: 0

Message # 4 | 6:07 PM
Hi CoffeeCone. Thanks for this awesome tutorial!!! Completely changed my site and made it way more user friendly. Quick quesrtion....

In the index.html file...what is the name="uCoz_Custom_Page_by_shadowslash" used for?

I figured I should change it for something that identifies me, but curious where it actually comes in to play as far as what my users see?

Thanks in advance!!!
uCoz Community » For Webmasters » Custom Solutions » How to Make Custom Path Container for Various Modules (A 7-step short tutorial.)
  • Page 1 of 1
  • 1
Search: