satyendrashrote
Member
Posted 1 year ago #
Hi all
i am having the site url as
https://domain.com/wordpress/wp-admin/options-general.php
1. i have a a web server where the domain name is specified
2. i have an application server where i am having the code
i have used mod_rewrite to overwrite the url.
but when i look in media upload section i am getting the url as
https://domain.com/wp-admin/options-general.php ,
wordpress is missing from there
i have all the settings proper still i am getting the 404 /pagenot found error.
i have used mod_rewrite to overwrite the url.
To what?
Are you trying to do this: http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory
satyendrashrote
Member
Posted 1 year ago #
1. i have a a web server where the domain name is specified
2. i have an application server where i am having the code
there was a slight confusion the error is because of
reversproxy
i am using the reverse proxy to
overwrite the application url with the web url
for example
http://121.121.21.21:80/wordpress
to overwirte with
http://domain.com/wordpress
so i am getting the errors while i am updating the options in the admin section
rest all is working fine
but few options in admin section are not working
thanks in advance sorry for the confusion....
satyendrashrote
Member
Posted 1 year ago #
have worked it out
/**
* Redirect back to the settings page that was submitted
*/
$getreferer = wp_get_referer();
$getreferer = substr($getreferer,10);
$goback = add_query_arg( 'updated', 'true', esc_url(admin_url($getreferer)) );
wp_redirect( $goback );