Tag Info

New answers tagged

0

The easiest way to do this is with the built-in $wp_rewrite global. Something like this should give you a good start: function new_rewrite_rules(){ global $wp_rewrite; $keytag = '%user_id%'; $wp_rewrite->add_rewrite_tag($keytag, '(.+?)', 'user='); $structure = $wp_rewrite->root . "username-$keytag/"; $rewrite = ...


0

Are you using cpanel? There is an option where you can select a directory and change the indexing. Alternatively, you can create you own htaccess in those directories and add the following line: 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 ...


0

Would using static home page and wordpress only as a blog increase page speed instead of using a Wordpress template to run the whole show? If it did, it would only increase the speed of the homepage. Would I achieve the same effect using cache tools? As a general rule yes – all cached pages (unless a user is logged in, when pages aren't normally ...


0

In your .htaccess file, add this code below- Redirect 301 / http://mywebsite.com/blog/ Change mywebsite.com with your actual domain.


0

I would use HTACCESS redirects just to avoid any other users not aware of the change in the future from altering it easily through your CMS. However, if you're interested in something a bit more user friendly, there are a number of apps that build in additional slug lines for you in the page such as WP's redirection plugin: ...


0

Try <h1><?php single_cat_title(); ?></h1> in Archives (archive.php) on your theme file.



Top 50 recent answers are included