• About

Random Wordpress Tips and Tricks

~ for wordpress hosted on your own server

Random Wordpress Tips and Tricks

Category Archives: Uncategorized

Redirect a Page to external URL

11 Saturday May 2013

Posted by Naren in Uncategorized

≈ Leave a comment

Tags

redirect page wordpress plugin

My theme provides a bunch of menu-level Pages .

I want one of them to redirect to the login/register page (<blog>/wp-login.php)

Solution: Install the “Page Links To” plugin

Image

http://wordpress.org/extend/plugins/page-links-to/installation/

 

Another alternative: (haven’t tried this yet.. but same idea)

http://wordpress.org/extend/plugins/quick-pagepost-redirect-plugin/faq/

Advertisement

How to remove logo and copyright from footer in WordPress theme

11 Saturday May 2013

Posted by Naren in Uncategorized

≈ Leave a comment

Tags

footer theme woothemes

So you bought and applied a theme to your blog

Now you want to remove the theme’s copyright and logo or replace it with your own

Solution:

Edit footer.php

located in :

/var/www/wp-content/themes/<theme-name>

How to send email from WordPress install

11 Saturday May 2013

Posted by Naren in Uncategorized

≈ Leave a comment

Tags

postfix email wordpress

For allowing users to register, reset passwords etc WordPress stand-alone installation needs to send emails.

Solution: You need to install Postfix 

For Ubuntu:

Postfix can easily be installed through apt-get:

sudo apt-get install postfix

Resources:

https://www.digitalocean.com/community/questions/do-i-need-to-install-a-mail-server

https://www.digitalocean.com/community/articles/how-to-install-and-setup-postfix-on-ubuntu-12-04

Enabling Permalinks on WordPress install (Ubuntu 12.10)

10 Friday May 2013

Posted by Naren in Uncategorized

≈ 13 Comments

Tags

permalink ubuntu wordpress apache

Permalinks require mod_rewrite and .htaccess

Steps: 

1. To enable mod_rewrite in Ubuntu, you just need to write this command in terminal
sudo a2enmod rewrite

Restart apache2 after this by typing “service apache2 restart”

2.  To get Permalinks working you will need to place an .htaccess file in your wordpress’s web directory(/var/www or /var/www/<blogname> in case of multiple blogs on same host) and add the following: 

# BEGIN WordPress 

RewriteEngine On 
RewriteBase / 
RewriteRule ^index\.php$ – [L] 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule . /index.php [L] 

# END WordPress 

 

3.  Change the permissions on the .htaccess file to “chmod 666” so wordpress can update it when you switch permalink patterns from the settings page

Note: This is a hidden file so it will only show up when you type “ls -altr“

4. Open up the following file, and replace every occurrence of “AllowOverride None” with “AllowOverride all”  (note : “all” should be in lower-case for this to work)

1) sudo nano /etc/apache2/sites-available/default 
2) sudo service apache2 restart

5. Change the permalink in WordPress admin console(http://your-wordpress-domain/wp-admin.php)  to what you want by going to Settings -> Permalinks -> and clicking to “Save Changes”. 

This will update the .htaccess file. Double-check this by checking the timestamp of the .htaccess file after clicking “Save changes” on WordPress admin console

 

Resources:

https://www.digitalocean.com/community/questions/wordpress-permalinks-broken

https://www.digitalocean.com/community/questions/ubuntu-12-04-lamp-wordpress-htaccess-errors

https://www.digitalocean.com/community/questions/can-t-get-permanent-links-in-wordpress-to-work-404-error

http://mahmudahsan.wordpress.com/2008/07/06/ubuntu-enable-mod_rewrite-in-apache-server/

http://codex.wordpress.org/Using_Permalinks

Subscribe

  • Entries (RSS)
  • Comments (RSS)

Archives

  • May 2013

Categories

  • Uncategorized

Meta

  • Register
  • Log in

Create a free website or blog at WordPress.com.

Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Follow Following
    • Random Wordpress Tips and Tricks
    • Already have a WordPress.com account? Log in now.
    • Random Wordpress Tips and Tricks
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar