Category Archives: Website

An appropriate representation of the requested resource /wp-admin/options-permalink.php could not be found on this server.

Not Acceptable

An appropriate representation of the requested resource /wp/wp-admin/options-permalink.php could not be found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

I was getting below error, I believe it is to do with mod_security.

I have tested this by putting below entry in my .htaccess, But unfortunalty does not work for me, so raise a support ticket and disabled with hosting provider.

<IfModule mod_security.c>
  SecFilterEngine Off
</IfModule>

You sure can do it manually. I am trying to find out why the page is blank too, but in the mean time I have manually altered the setting in PHPMyAdmin.

1. Go in to PHPMyAdmin
2. In the sidebar on the left select wp_options
3. Go to Page number: 2
4. click the pencil on the link with permalink_structure
5. In the big box next to option_value and input /%postname%

b2blog/evo_hitlog’ is marked as crashed and should be repaired(Errno=145)

This is the error I got yesterday:

—————————————-
MySQL error!

Table ‘./b2blog/evo_hitlog’ is marked as crashed and should be repaired(Errno=145)
—————————————-

 

Easily fixed though.

Logged in through SSH
Went to mySQL
Executed the command “repair table evo_hitlog;”

or

You can login to your webhosting Cpanel and go to databses and run “Repair DB”.

All Fixed. Hope it wasn’t a hacking attempt…

 

>

How to enable Javascript in any browser

Enable Javascript In Firefox 1.5
Load Options Dialog In Windows

  • Click on “Tools” menu bar at the top of the window.
  • From the drop menu, click on “Options”

Load Options Dialog In Linux

  • Click on the “Edit” menu bar at the top of the window.
  • From the drop menu, click on “Preferences”

Continue for all operating systems:

  • Select the “Content” tab
  • Check box for “Javascript” or “Enable Javascript”
  • Click “Ok”. The Options dialog will close and scripting is now enabled.

Enabling Javascript In Internet Explorer 4/5/6

  • Click on “Tools” menu bar at the top of the window.
  • From the drop menu, click on “Internet Options”
  • Select the “Security” tab
  • Click on the “Custom Level” button
  • Towards the bottom of the list, look for and enable “Active Scripting”,under the “Scripting” group.
  • Click “OK”. You will be promted to confirm, click “Yes”
  • Click “Ok”. The Internet Options dialog will close and scripting is now enabled.

Enabling Javascript In Internet Exporer 7

  • Click on the “Tools” menu item.
  • From the drop menu, click on “Internet Options”
  • Select the “Security” tab
  • Click on the “Custom Level” button
  • About 4/5 way down the list, look for and enable “Active Scripting”, under the “Scripting” group.
  • Click “OK”. You will be promted to confirm, click “Yes”
  • Click “Ok”. The Internet Options dialog will close and scripting is now enabled.

Enabling Javascript In Safari

  • Click on “Safari” menu bar at the top of the window.
  • From the drop menu, click on “Preferences”
  • Select the “Security” tab
  • Check the box for “Enable Javascript For”
  • Click “Ok”. The Preferences dialog will close and scripting is now enabled.

Enabling Javascript In Netscape

  • Click on “Tools” menu bar at the top of the window.
  • From the drop menu, click on “Preferences”
  • Select the “Advanced” tab
  • Check the box for “Enable Javascript”
  • Click “Ok”. The Preferences dialog will close and scripting is now enabled.

Enabling Javascript In Konqueror

  • Click on “Settings” menu bar at the top of the window.
  • From the drop menu, click on “Configure Konqueror”
  • Select the “Java & Javascript” item from the left menu pane.
  • Select the “Javascript” tab in the right pane
  • Check the box for “Enable Javascript globally”
  • Click “Ok”. The Preferences dialog will close and scripting is now enabled.

Enabling Javascript In Opera 9

  • Click on “Tools” menu bar at the top of the window.
  • From the drop menu, click on “Preferences”
  • Select the “Advanced” tab
  • Check the box for “Enable Javascript”
  • Click “Ok”. The Preferences dialog will close and scripting is now enabled.

Enabling Javascript In Epiphany

  • Click on “Edit” menu bar at the top of the window.
  • From the drop menu, click on “Preferences”
  • Select the “Privacy” tab
  • Check the box for “Enable Javascript”
  • Click “Close”. The Preferences dialog will close and scripting is now enabled.

How to Stop / Prevent Directory Listing of Your Website

If you create a new directory (or folder) on your website, and do not put an “index.html” file in it, you may be surprised to find that your visitors can get a directory listing of all the files in that folder. For example, if you create a folder called “media“, you can see everything in that directory simply by typing “http://www.example.com/media/” in your browser. No password or anything is needed.

Disable directory browsing using .htaccess:

Add the following line to your .htaccess file.

Options -Indexes

Make sure you hit the ENTER key (or RETURN key if you use a Mac) after entering the “Options -Indexes” words so that the file ends with a blank line.

Disable directory browsing using httpd.conf:

  • Open your httpd.conf, normally it’s located at /usr/local/apache/conf or /etc/httpd.conf
  • Go to your own Virtual Host settings and look for “Options Indexes
  • Change the Indexes to -Indexes if Option Indexes exists or else add the Options -Indexes line
  • Restart your apache web server.
  • The directory browsing feature should be disable by now

Disable directory browsing in CPanel Share Hosting environment:

  • Login to your CPanel
  • Click on Index Manager
  • Directory will be list down. Click on the directory name which you want to disable the directory browsing
  • Select No Index and click Save
  • The directory browsing feature should be disable by now

If all goes well, you should get a “Forbidden” error when you try to access a directory that doesn’t have an index file.

If anything goes wrong, delete the .htaccess or check settings or file on your website and your site should work again.

Note :For those who had an existing .htaccess on the site before, upload the backup copy to the site.

Publish a PDF file on your Website

Proposing a PDF link on your own website is an operation that can seem quite easy if you are a professional webmaster and know how to effectively use HTML tags. For beginners in HTML, a PDF file can be uploaded on your website by adding the internal link <a href=”File.pdf”>Download PDF</a> in the body of your webpage.

The process is rather simple but somehow needs to be reviewed by the webmaster as the display of the downloaded PDF file will majorly depend on the Internet Browser used by the Internet user who is downloading the file. Hence, a hassle-free solution would be to enable the ‘Save As…’ option upon a right click command on the document. This will allow the user to save the PDF directly on his computer.

However, some web designers would prefer to display the whole PDF file instead of the link. This task can be done by the help of a software known as pdf2swf and whose major task is to convert a PDF document into a flash file that will be displayed on the website. You can get a free version of this program from the link http://www.swftools.org/download.html

After having downloaded and installed the program on your computer, you can now start with the conversion of the PDF file. When the PDF file has been converted, you can put it on your website through a FTP process and by adding the following HTML code

<object width=”595″ height=”842″>
<param value=”nameofdoc.swf”>
<param value=”true”>
<param value=”true”>
<param value=”high”>
<embed src=”nameofdoc.swf” width=”595″ height=”842″
play=”true” align=”” loop=”true” quality=”high”
TYPE=”application/x-shockwave-flash”
PLUGINSPAGE=”[[http://www.macromedia.com/go/getflashplaye]r]”>
</embed>
</object>