Showing posts with label web application. Show all posts
Showing posts with label web application. Show all posts

Thursday 9 October 2014

How to change the default directory index page using an .htaccess file?

You can use the DirectoryIndex directive in an .htaccess file 
to specify a custom file or files that the web server looks for 
when a visitor requests a directory. To enable the DirectoryIndex 
directive, use a text editor to modify the .htaccess file as 
follows. Replace filename with the file that you want to 
display whenever a user requests the directory:

DirectoryIndex filename

You can also specify multiple filenames, and the web server
 will search for each file until it finds a match. Consider 
this example directive:

DirectoryIndex index.php index.html index.htm

How to enable and disable directory index listings using an .htaccess file?

Enable directory index listings
In some cases, however, you may want to enable index listings for a directory. 
To do this, use a text editor to add the following line to the .htaccess file:

Options +Indexes

This directive enables standard indexing, where the index listing shows 
only the filenames. You can also enable “fancy” indexing, where the 
index listing shows filenames, their filesizes, and when they were 
last modified. To do this, add the following line to the .htaccess file:

IndexOptions +FancyIndexing

How to protect your file content using htaccess?

# Prevent Apache from serving .htaccess files:
<FilesMatch "^\.htaccess">
    Order allow,deny
    Deny from all
</FilesMatch>

Wednesday 6 August 2014

Facebook embed your website

Instead, I would try this site, iframehost, to install your Iframe and embed your blog.
Log in to Facebook.
Go to this page.
Click “install page tab.”
Choose the business page to which you want to embed your blog.
Click “authorize the tab application.”
In the bottom left-hand corner of the text box that appears, change the drop down menu to “only me.”
Beside “page source” click on “URL” and enter the URL you want to embed.
Change the tab name and image. You will also be able to change these later.
Click “Save Settings” and then allow the application to access your business page.
Go to your business page and check that your tab is working appropriately.

Ref: http://writerswin.com/new-options-to-embed-your-website-on-facebook/ 

Monday 7 April 2014

HTML codes to put currency characters on your Web page


Display Friendly Code Numerical Code Hex Code Description
&#x20B9; &#x20B9; &#x20B9; Indian Currency Symbol
¤ &curren; &#164; &#xA4; Generic Currency Symbol
$ $ &#36; &#x24; Dollar Sign
¢ &cent; &#162; &#xA2; Cent Sign
£ &pound; &#163; &#xA3; Pound Sterling
¥ &yen; &#165; &#xA4; Yen Symbol
? &#8355; &#x20A3; Franc Sign
? &#8356; &#x20A4; Lira Symbol
? &#8359; &#x20A7; Peseta Sign
&euro; &#128; &#x80; Euro Symbol
% % &#37; &#x25; Percent
&#137; &#x2030; Per Thousand