How to redirect http://mydomain/blog/blahblah/ to http://mydomain/blahblah/ in wordpress htaccess?
This is not a WordPress question. Anyway … RewriteRule ^blog/(.*) /$1 [L,R=301]
This is not a WordPress question. Anyway … RewriteRule ^blog/(.*) /$1 [L,R=301]
You’ll want to use the Domain Mapping Plugin to accomplish this. See the installation tab on that page, it has excellent instructions! Cheers~
You should be able to just add your port 8888 under general settings wordpress/site url, or directly in your config.php. In your case that would be http://localhost:8888 . I don’t know how or what browseling is but a quick glance also shows they support ssh reverse tunnel proxy for localhost, which is another option.
Ok guys, I did further research. Basically, all I had to do was add “Satisfy Any” argument. So the main .htaccess file looked like the one I posted in my initial thread. Then for the specific folder, I created a new .htaccess file (/folder/.htaccess). Then added this: <Files wp-login.php> Satisfy Any </Files> Much thanks to … Read more
I’m using a plugin for this called WordPress HTTPS. If you still intend to code a solution yourself, maybe you can get some ideas from it at least.
Based on your comment, here’s the solution for an Nginx-Apache stack with “disk: enhanced” page cache method in W3 Total Cache plugin… location / { error_page 418 = @cachemiss; recursive_error_pages on; if ($request_method = POST) { return 418; } if ($query_string != “”) { return 418; } if ($request_uri ~* “(\/wp-admin\/|\/xmlrpc.php|\/wp-(app|cron|login|register|mail)\.php|wp-.*\.php|index\.php|wp\-comments\-popup\.php|wp\-links\-opml\.php|wp\-locations\.php)”) { return 418; } … Read more
There’s a section on WordPress file permissions in the Codex article on Hardening WordPress. The article doesn’t talk much about Multisite, but it should be treated similarly to the rest of wp-content — ie, the server process needs to be able to write to it. I’d steer clear of doing chown www-data:www-data [/path/]wp-content/uploads/sites — you … Read more
First, both of these things (updates and sane file permissions) are neither “OR” choice or optional. That is what you just do, because if you don’t sooner or later (even if significantly later) you are going to have problems because of it. Relatively I would say updates are more important, because faulty file permissions tend … Read more
For the next person, be sure to set AllowOverride All in the correct directory. In Damon’s case he set AllowOverride All in the /var/www/html directory, but his site is located in /var/www/example.com/public_html. I could be wrong, but the AllowOverride setting is specific to the directory. Damon should add the AllowOverride All setting to the /etc/httpd/sites-available/example.com.conf … Read more
whereis is not the right tool to find a file. whereis – locate the binary, source, and manual page files for a command You better use find /var/www/html/wptest2/ -name .htaccess to search for your .htaccess. Try to create a new .htaccess (touch /var/www/html/wptest2/.htaccess) and see if it’s possible.