How to change wordpress news root url

In admin create a page with slug tips-and-tricks. Than go to Settings->Reading than in first section set up your new page to be your posts page. WP will handle proper redirection of old permalinks to new.

Changing functions.php and .htaccess files

functions.php file is where you can do wonders with your theme without touching the core WordPress files. Most of the time the backup functions.php trick would work for you unless you aren’t changing anything in the database with any of your action or filter hooks. You could check this link too -> http://codex.wordpress.org/Theme_Development#Functions_File Regarding the … Read more

In a subdomain network, what .htaccess settings can I use to have WP ignore requests to one subdomain?

I found this article: http://codex.wordpress.org/Configuring_Wildcard_Subdomains_for_multi_site_under_Plesk_Control_Panel I had used it originally when setting up the wildcard subdomains on my Plesk server. At first I didn’t need to worry about the webmail section, but now I do, and here’s what I did: $ cd /etc/apache2/conf.d $ mv zzz_horde_vhost.conf zz001_horde_vhost.conf $ /etc/init.d/apache2 restart This way, the Horde config … Read more

Images in sub-pages fail to load

Your problem has nothing to do with htaccess. It’s that you’re using relative paths where you should be using absolute paths. (Here’s an explanation of the difference) Probably the best way to reference any assets in your theme (assuming your theme has an “images” subdirectory) is to do something like: <?php echo get_bloginfo(‘template_url’) ?>/images/your_image.jpg The … Read more

pictures does not apeare in posts

The correct .htaccess for a multi-site setup looks like this: RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] # uploaded files RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ – [L] RewriteRule . index.php [L] Note the rule for files: That’s how WordPress locates your images. You need also a … Read more

MAMP.app & .htaccess – Can’t override after config

Are you sure your default <Directory /> settings aren’t getting overridden somewhere else? I have mine directly in the vhost and .htaccess and rewrite rules work fine. <VirtualHost *:80> ServerName wp.project DocumentRoot “/Users/chris/Sites/wp.project” <Directory “/Users/chris/Sites/wp.project”> Options Indexes Includes FollowSymLinks AllowOverride All Order allow,deny Allow from all </Directory> </VirtualHost>

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)