I have created a plugin for Wordpress which extends the backend area. New menu items are available for example at www.URL.xx/wp-admin/admin.php?page=make_request.
Is it possible to set it up so that this menu item is accessible at www.URL.xx/request?
I alreay tried the Redirection Plugin, but this does not work. Is it possible via htaccess?
I am using Apache.
Redirect 301 /wp-admin/admin.php?page=make_request http://myurl.com/request
Does not work
You can use server redirections custom rewrites, f.e. in nginx here you can find a lot of examples --> https://www.liquidweb.com/kb/redirecting-urls-using-nginx/
Related
Beginner question:
I need to perform a 301 redirect from one Wordpress site (domain), to another Wordpress domain, like this:
From:
http://mycompany.com
To:
http://mycompany.se
A problem is that I have no FTP credentials for my From-site. I can't reach the .htaccess file.
Is there a plugin to use? I have studied the Redirection plugin, but this one seems working on pages within the same domain only(?)
I guess I need to be careful, because if some plugin edits the .htaccess file and something breaks, I can't reach the file...
Thankful for any help!
Whit Redirection Plugin you can redirect a url from old to new website.
You can create and manage redirects quickly and easily without needing Apache or Nginx knowledge. If your WordPress supports permalinks then you can use Redirection to redirect any URL.
There is full support for regular expressions so you can create redirect patterns to match any number of URLs.
The plugin can also be configured to monitor when post or page permalinks are changed and automatically create a redirect to the new URL.
You can easily find multiple plugins to perform 301 redirection in wordpress,but if you want to edit .htaccess you can install the plugin called "WP htaccess control" https://wordpress.org/plugins/wp-htaccess-control/ .
Through this plugin you can edit the .hraccess file from admin side.
Thanks.
I've just inherited a WP site to maintain, and every page on the site loads from
www.site.com/index.php/page
For what reason would a Wordpress site be set up like this? Can I possibly change this in the Dashboard, or would I need to modify htaccess?
Internally, all requests go through index.php. You can override this in the "Permalinks" section of your WP Admin Panel.
I need to create a static php landing page (landing.php) for inbound advertiser links that that can access my wp plugin and then redirect to homepage.
Is it possible to access my plugin from a "regular" .php file? If so, how?
Or is there better way to do this within WP that doesn't load templates and just accesses my wp plugin and redirects to homepage?
Put this line at the top of your landing php:
require('/path/to/wp-load.php');
After that, you can use all WordPress functions, including your plugin.
I've got a web site based on wordpress, I need to temporarily hide the web site.
I thought about using a PHP 301 redirect. I tried to put at the begining of index.php and xmlrpc.php without success. How does wordpress file-structure works?
Tnx
Giuseppe
I've used this for redirects in the same purpose:
http://wordpress.org/extend/plugins/redirection/
I put the temporary html-file that I wanted to display in a folder which was placed in the same place as the main index.php file.
If you really need to hide a website under development, block search engines in Dashboard/Settings/Privacy and use something like WordPress › Absolute Privacy « WordPress Plugins to disable RSS feeds and redirect to a static page you choose.
HOw can you make a custom menu that goes to the home page but the url is not static? Like I am in a test server right now, so the url is localhost/mywordpress. I put a '/' in the url for my custom menu but it redirects to localhost.
Is there a way to put it in a way it can goes to the homepage of my test server?
Thanks
Just use /wordpress/ and remember to change it back on the production server.
Better yet, use Apache VirtualHosts to map a fake domain to a document root. Check out my answer on setting up a VirtualHost.