UbuntuOperaGet Firefox! Use OpenOffice.org
Avatar

Texture not found [pattern]

Wed, 17 September 2008
Today I would like to show you a new pattern.
Not the most unique one but I didn't find it when I looked for one and after designing it, I didn't used it -_-

But for people who would like to use it in the future,
you can download it here. (312KB)

n/a

PS: Preview image is resized.
Post #24, Design, 29 full reads. Add a comment
Avatar

Upgrading Linksys WRT54GL v1.1 not so hard. [DD-WRT v24 SP1]

Fri, 12 September 2008
I'm not a big fan of upgrading/updating firmware and most of the time I will wait as long as possible. The same for my Linksys WRT54GL v1.1 router. After upgrading it to DD-WRT v23 SP2 on the day I bought it, I waited until today to update it to V24 SP1. Just because I was afraid it will brick and when I don't brick it, you still need to change all the settings. And face it, thats not the most fun job in the world, unless your a network administrator ;-)

But today I made the step and in the end I'm happy with it. It didn't take to much work, the only thing I will need to reconfigure are my port forwards. Might be a good idea for dd-wrt to make some sort backup function for that ;-)
Here are a few tips and work flows when you want to update/upgrade:

*When using the original firmware from linksys, you first need to upgrade to micro first and than to the standard (or other compatible) firmware,
you can find micro here.

*The standard firmware can be found here.

*The difference between the firmwares can be found here.

*Using the mega firmware will epicly fail your upgrade/update, your router only supports 4MB Flash, mega is more than 5MB, do the math...

*Print/save a copy of this page, when you brick it, this baby will be your life saver.

*After upgrading you will need to reset the router, hit the reset button for 30 seconds.

*Copy and paste your WPA-key in a text-file. It's easer to reconfigure the router with the old WPA-key than reconfigure all you wireless clients with the new key.

*Don't forget to filter you MAC addresses on your wireless connection.

*Wiviz only works correctly with Internet Explorer (?), you can find it under
Status -> Wireless -> Wiviz survey or http://192.168.1.1/Wiviz_Survey.asp
Post #23, Other..., 26 full reads. Add a comment
Avatar

How to invisible redirect websites in Apache. [updated]

Thu, 4 October 2007


Problem: You have 1 hosting package but 2 websites. How do you make a nice looking redirect, so that they run nicely side by side, with .htaccess?

There are 2 common hosting situations that I will explain, the first is VirtualDocumentroot what gives you access to sub domains (example: http://image.domain.com). The other one is Documentroot what will lead all the traffic to the www folder (http://www.domain.com is the same as http://domain.com).

Here you can see a demo of virtual root (sort of).

VIRTUALDOCUMENTROOT.

VirtualDocumentRoot

VirtualDocumentRoot

When you use VirtualDocumentroot, you have a root folder where you can place sub folders who represent sub domains. In the figure "VirtualDocumentroot" you can see an example of a basic hosting package using VirtualDocumentroot. There is an www-folder who represents http://www.domain.com and you have an image folder who represents http://image.domain.com.

The first thing we are going to do, is to create a .htaccess file that will move all the traffic without a sub domain to the www-folder (http://domain.com becomes http://www.domain.com). Copy and modify the following code in a standard text-editor like notepad or gedit:

Code

RewriteEngine On

RewriteCond %{HTTP_HOST} ^WebsiteNameA.com$ [NC]
RewriteRule ^(.*)$ http://www.WebsiteNameA.com/ [R=301,L]

RewriteCond %{HTTP_HOST} ^WebsiteNameB.com$ [NC]
RewriteRule ^(.*)$ http://www.WebsiteNameB.com/ [R=301,L]


Save as .htaccess (be careful when using windows not to add an extension) and upload it to your root folder (/) This .htaccess-file still makes it possible to use sub domains like http://image.domain.com, keep in mind that in this example it doesn't mather witch domain name you use. Both image.WebsiteNameA.com and image.WebsiteNameB.com will work for this example.

The next thing we will do is separate both domains. For this example I made 2 folders called websitea and websiteb in the www-folder. The names you use aren't important, you could easily use 'cake' and 'beer' as long you change the names in your second .htaccess file. What brings us to .htaccess file number 2. Again, copy and modify the following code in a standard text-editor like notepad or gedit, the /websitea is the folder name of the corresponding domain:

Code

RewriteCond %{HTTP_HOST} ^www.WebsiteNameA.com$
RewriteCond %{REQUEST_URI} !/websitea
RewriteRule ^(.*)$ /websitea/$1

RewriteCond %{HTTP_HOST} ^www.WebsiteNameB.com$
RewriteCond %{REQUEST_URI} !/websiteb
RewriteRule ^(.*)$ /websiteb/$1


End result VirtualDocumentroot

End result VirtualDocumentroot

And again you need to save the file as .htaccess but this time you upload the file in the www-folder! See the figure "End result VirtualDocumentroot" to get a clue.

Let me explain what this file does, whenever people visit website A or B, the server will get the files out the corresponding folder. In this case the server will get all the files for http://www.WebsiteNameA.com out folder /www/websitea and for http://www.WebsiteNameB.com out folder /www/websiteb. The cool thing about this is that the user won't see it happen, unlike the redirect of http://WebsiteNameA.com to http://www.WebsiteNameA.com, you also don't need to worry about complex url's like http://www.WebsiteNameA.com/index.php?id=12&other=test or http://www.WebsiteNameA.com/image/file.jpeg. If all the corresponding files are in the right folder, it will work.

One thing though, when you use full paths in your website's you need to keep in mind that it's now /www/websitea (or /www/websiteb), but normally this won't be a problem in modern cms or blog engines like wordpress.

DOCUMENTROOT.

DocumentRoot is almost the same like VirtualDocumentroot, with the exception that your root folder is your www-folder and you don't have sub domains. The good news is that there is less work to invisible redirect website.

DocumentRoot

DocumentRoot

Lets get started, the first thing we need to do is to split or 2 website into 2 folder. All files from website A will go in folder websitea and all files of website B will go in folder websiteb (see image 'DocumentRoot' for an example). The names of the folders aren't important as long you change them in the .htacces file, what brings us to the next part: the .htaccess file. Copy and modify the following code in a standard text-editor like notepad or gedit:

Code

RewriteCond %{HTTP_HOST} ^www.WebsiteNameA.com$
RewriteCond %{REQUEST_URI} !/websitea
RewriteRule ^(.*)$ /websitea/$1

RewriteCond %{HTTP_HOST} ^www.WebsiteNameB.com$
RewriteCond %{REQUEST_URI} !/websiteb
RewriteRule ^(.*)$ /websiteb/$1


After you modified the file, save as .htacces and upload it into your root folder.

Let me explain what this file does, whenever people visit website A or B, the server will get the files out the corresponding folder. In this case the server will get all the files for http://www.WebsiteNameA.com out folder /websitea and for http://www.WebsiteNameB.com out folder /websiteb. The cool thing about this is that the user won't see it happen, you also don't need to worry about complex url's like http://www.WebsiteNameA.com/index.php?id=12&other=test or http://www.WebsiteNameA.com/image/file.jpeg. If all the corresponding files are in the right folder, it will work.

Good luck and if you have any questions, feel free to ask them.
Post #1, Code, 2697 full reads. Add a comment
Avatar

Stijn-Dhaese.be [Personal Portfolio/Website]

Thu, 28 August 2008
After a few weeks of work, I finaly finnished my portfolio webpage and you can visit it @ Stijn-Dhaese.be.

* XHTML and CSS2 Valid.
* Compatible with most modern browsers and Internet explorer 6.
*No bugs know.

A few pictures of the design:

Picture 1

Picture 2

Picture 3

Picture 4

Picture 5

Picture 6

Final result:
n/a
Post #22, Webdesign, 33 full reads. Add a comment
Avatar

Update on life!

Thu, 28 August 2008
n/a

Update 1: There are still a lot of bugs but RA3 is fun to play. I also have a spare key but I'm not sure on who I would give it. Don't know allot of people who play C&C allot :-/ Maybe I just post it in a few days :-p

Update 2: Personal Website/Portfolio is finnished, visit it here. I also found the time to update my Deviantart profile.
Post #17, Personal, 43 full reads. Add a comment
Go to page : 0 » 1 » 2 » 3 » 4
Smaller Font Bigger Font Separator rss button
About:
CodeForPron.com is the weblog and portfolio of Stijn D'haese. A little freedom on the net by an administrator, designer and developer from Belgium.
Links:
Advertisment:
Most-read posts: