Submit Blog Login Last Submitted Blogs RSS Archive Contact  
Htaccess
 
 
 
    Articles about Htaccess
    Change default directory page using .htaccess
    2008-04-21 10:27:16
    I know you guzy all know about index file. This is the default file which is executed in the web server. For example, if you type”http://roshanbh.com.np” in this the browser, the “index.php” gets loaded first. This “index.php” file is commonly know as directory index file. Basically , the default executed file in the web directory starts [...]...
    By: PHP And Ajax Related Useful Resources and Codes
     
    5 useful url rewriting examples using .htaccess
    2008-03-10 23:10:43
    If you are looking for the examples of URL rewriting then this post might be useful for you. In this post, I’ve given five useful examples of URL rewriting using .htacess. If you don’t know something about url rewriting then please check my older post about url rewriting using .htaccess. ...
    By: PHP And Ajax Related Useful Resources and Codes
     
    Prevent Directory Listing using .htaccess
    2008-03-08 23:39:54
    What is directory listing ? As we know, most of the website contains “images” folder inside the root folder. If we type “www.somesite.com/images” in the browser and it shows the listing of the files in the browser like the picture below which means that directory listing is allowed on that web server. ...
    By: PHP And Ajax Related Useful Resources and Codes
     

    Custom Error Page with .htaccess and ErrorDocument
    2008-02-22 09:46:13
    In my last post of Hiding .php file extension with .htaccess Michael has mentioned that you can create your own custom page for the the 404(not found) error in server. And alex wanted to know that tip as well.Alex here is the post for you rather than replying your comment. ...
    By: PHP And Ajax Related Useful Resources and Codes
     
    Hide .php extension with url rewriting using .htaccess
    2008-02-13 06:12:44
    Last time I’ve written an article about hiding php file extension where I’ve showed you how you can use .html or .asp extension of file instead of .php extension. But there was one flaw in that technique you have had to change the file extension explicitly but in this post I’m going to show you [...] ...
    By: PHP And Ajax Related Useful Resources and Codes
     
    301 redirect in PHP and .htaccess
    2007-12-29 11:12:00
    What is 301 redirect ? You have a website and its all pages are ranked in the search engine. And now you’ve moved these files to a new domain. What will happen in this scenario!!. You are sending the visitor to “Error 404 - File not found” page when they follow your website in the search [...] ...
    By: PHP And Ajax Related Useful Resources and Codes
     

    How to use .htaccess for Redirection
    2007-07-21 11:26:20
    Recently, when I had a domain change, I needed something in order to transfer all of my traffic from the old domain to the new one. So I used .htaccess for the redirection. You can also use this, by typing the following in your .htaccess: RewriteEngine OnRewriteCond %{HTTP_HOST} ^.*oldwebsite.com$ [NC] RewriteRule ^(.*)$ http://www.preferredwebsite.net/$1 [R=301,L] Replace oldwebsite.com with the current website and replace http://www.preferredwebsite.net with the new website URL where you want to redirect the traffic to. If you want to know what did I used for my old domain, then see below: RewriteEngine on RewriteCond %{HTTP_HOST} ^sizzledcore.uni.cc$ [OR] RewriteCond %{HTTP_HOST} ^www.sizzledcore.uni.cc$ RewriteRule ^(.*)$ http://www.sizzledcore.com [R=301,L] ...
    By: Sizzled Core - A collection of sizzling findings!
     
     
    TopBlogging
     
     
    TopBlogging
    TopBlogging.com TopBlogging.com
    eXTReMe Tracker