301 Redirect To Post ID

When you are importing via code (which is practical necessity for large imports) you can supply import_id argument to wp_insert_post() to be used. There is however no clean/safe way (that I can think of) to specify or modify post IDs manually. In your case (if you are really stuck with manually created posts) I would … Read more

Permalinks: Page Not Found

Do you have mod_rewrite enabled? This sort of thing tends to happen when it’s not. At which point, you only have access to ugly permalinks (?p=N) or “almost pretty” permalinks (/index.php/slug). The latter uses pathinfo to get you the page you’re requesting instead. So I’d suggest double checking whether mod_rewrite is installed and enabled. If … Read more

.htaccess ‘down for maitenance’ and WordPress

How do we add a second IP address that is allowed to see the site in development? We can just append just second REMOTE_ADDR like this since the default flag is [AND] # BEGIN Maintenance <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REMOTE_ADDR} !^11\.111\.111\.11$ #First Address RewriteCond %{REMOTE_ADDR} !^123\.45\.67\.89$ #Second Address RewriteCond %{REQUEST_URI} !^/maintenance\.html$ RewriteRule … Read more

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