Tag Info

New answers tagged

0

You've deactivated it, but did you uninstall it? Looks like a table was created and there's an uninstall function in there that removes the database table with some redirects in there. I would give that a shot. But before you do anything, back up your database and files.


0

But if you protect wp-login.php, how would a hacker even get into the dashboard anyways? An attacker could try to hijack or forge a valid authentication cookie. Recently there was a possibly vulnerability which made it Ā»easierĀ« to forge such a cookie: CVE-2014-0166 It was fixed with Version 3.7.3/3.8.3 How does "Code A" compare to "Code B"? Would ...


1

I was able to get this to work by doing 3 things differently: I removed the rule from the .htaccess file I added a "add_rewrite_rule" function in the functions.php file Rather than using "category_name" I reverted to using "cat" as the parameter Here's the code: function rewrites() { add_rewrite_rule('^news?$', 'index.php?cat=6', 'top'); } ...


0

This is definitely not related to a "missing" .htaccess file. WordPress will create an .htaccess file if needed (for permalinks) and re-create a deleted file if needed. If you have deleted all previous data as you state and installed WordPress several times, you likely have a very messy DB and/or file situation going on. Why not simply create a new DB, ...


1

If you want to block direct access to the other folder, you can put a .htaccess file in that folder that contains just: deny from all That way you cannot open any file from that folder directly, but you can include them (in PHP) without any problems.


0

I do agree with mrwweb about duplicate content, I'm not quite sure why you'd want to do that, but, for the sake of argument... You could possibly grab the URL and then enqueue the correct style sheet from your functions.php Something like this (untested): <?php function mytheme_stylesheet_enqueue(){ global $post; $my_url = ...


1

I'd encourage you to take one step further back and avoid using URLs to determine theme at all. (And FYI, what you're describing are subfolders, not subdomains which would be red.example.com.) The reason not to do this is to avoid duplicate content issues with search engines. Technically, you could work around them, but it can also be confusing to visitors ...


1

Why do you want to use .htaccess to do this? Why not just move to the new URL? Alternatives include adding something similar to one of the following to your .htaccess file (note the 301 "permanently moved" code being sent back to the browser in both cases): RedirectMatch 301 /e /wp or <IfModule mod_rewrite.c> RewriteEngine On RewriteCond ...


0

This is outside the realm of WordPress. I'll give you a basic answer that should help you figure out what you need to do. The general idea is you will point your new domain names to point to your web server's IP address. Then your web server will see which domain name is being called and then route it accordingly. If you have a dedicated server, you'll ...


0

Enable debugging in wp-config.php and check for errors. define( 'WP_DEBUG', true ); If you see blank white screen then it means.. Either you renamed your theme folder name. Some plugin is blocking access. Enable debigging and post errors here. EDIT You will have to try uploading files manually. Download no content WordPress from here. ...


0

This rewrite rule will surely work. Add this code to your .htaccess file. RewriteEngine On RewriteRule ^uni/([^/]*)$ /gallery/?university=$1 [L]


2

You might have edited your .htaccess file in Windows notepad or text editor. If you did use Windows text editor then it must have added some special chars in .htaccess file and that will lead to 500 internal server error. Never edit in Windows text editor. Use notepad++ for editing .htaccess and .htpasswd files.


0

Ok. Then you can use template_redirect hook and wp_is_mobile() conditional tag. wp_is_mobile() will work on device only. If you resize the window then it will not work. Now you can try this kind of code in your functions.php file add_action('template_redirect', 'redirecting_to_mobile_site'); function redirecting_to_mobile_site(){ if( wp_is_mobile() ){ ...


0

.htaccess is not a problem for that, but be care with security. I'm searching and I found the solution here: Giving WordPress Its Own Directory 1- Check your index.php (located at 'public_html') and write on: require( dirname( __FILE__ ) . '/<your-tree-directory>/wp-blog-header.php' ); in your case: require( dirname( __FILE__ ) . ...


0

Did you update the URL in the DB? It sounds like the site still thinks it's running in the old location which usually indicates the DB still has the old path in it. I highly recommend the Search and Replace tool that Interconnect IT produces. The stable 2.1 version is my preference. Make sure you remove this script when you have finished. It's an open ...



Top 50 recent answers are included