Home › Forums › WordPress Plugins › Hide My WP › wp-content/uploads not renamed
- This topic has 18 replies, 2 voices, and was last updated 11 years, 1 month ago by Hassan.
-
AuthorPosts
-
December 2, 2013 at 1:42 pm #471kratos85Post count: 10
Hy dude and fantastic plugin. I have a little problem. Some files are renamed but not all.
Elements from post and so on are not renamed so i have ugly wp-content/uploads in my url’s wich should be replaced with my files folderhere is my config and we are working in mu with wp 3.7.1
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]# BEGIN Hide My WP
RewriteRule ^library/(.*) /wp-includes/$1 [QSA,L]
RewriteRule ^files/(.*) /wp-content/uploads/$1 [QSA,L]
RewriteRule ^modules/3696a656/(.*) /wp-content/plugins/adminimize/$1 [QSA,L]
RewriteRule ^modules/4bb2dcab/(.*) /wp-content/plugins/advanced-custom-fields/$1 [QSA,L]
RewriteRule ^modules/4bb75d36/(.*) /wp-content/plugins/advanced-wpmu-plugin-manager/$1 [QSA,L]
RewriteRule ^modules/9ca663b1/(.*) /wp-content/plugins/ajax-thumbnail-rebuild/$1 [QSA,L]
RewriteRule ^modules/aa405a34/(.*) /wp-content/plugins/akismet/$1 [QSA,L]
RewriteRule ^modules/a8750549/(.*) /wp-content/plugins/availability/$1 [QSA,L]
RewriteRule ^modules/49f4db29/(.*) /wp-content/plugins/backupbuddy/$1 [QSA,L]
RewriteRule ^modules/12fbdb43/(.*) /wp-content/plugins/better-wp-security/$1 [QSA,L]
RewriteRule ^modules/a3ec1d56/(.*) /wp-content/plugins/cms-tree-page-view/$1 [QSA,L]
RewriteRule ^modules/347823eb/(.*) /wp-content/plugins/custom-post-type-ui/$1 [QSA,L]
RewriteRule ^modules/bdd65aec/(.*) /wp-content/plugins/duplicate-post/$1 [QSA,L]
RewriteRule ^modules/7bcf1182/(.*) /wp-content/plugins/eventON/$1 [QSA,L]
RewriteRule ^modules/09843d0c/(.*) /wp-content/plugins/fooboxV2/$1 [QSA,L]
RewriteRule ^modules/ec73f6cb/(.*) /wp-content/plugins/google-maps-widget/$1 [QSA,L]
RewriteRule ^modules/b53119a5/(.*) /wp-content/plugins/gravityforms/$1 [QSA,L]
RewriteRule ^modules/a00f08ce/(.*) /wp-content/plugins/intense/$1 [QSA,L]
RewriteRule ^modules/e7271557/(.*) /wp-content/plugins/jetpack/$1 [QSA,L]
RewriteRule ^modules/22f13382/(.*) /wp-content/plugins/jetpack-de/$1 [QSA,L]
RewriteRule ^modules/313e1d54/(.*) /wp-content/plugins/jonradio-reveal-network-activated-plugins/$1 [QSA,L]
RewriteRule ^modules/cc117a14/(.*) /wp-content/plugins/mp6/$1 [QSA,L]
RewriteRule ^modules/97bc7d12/(.*) /wp-content/plugins/new-royalslider/$1 [QSA,L]
RewriteRule ^modules/9733f7d1/(.*) /wp-content/plugins/options-framework/$1 [QSA,L]
RewriteRule ^modules/ab20214f/(.*) /wp-content/plugins/panopress/$1 [QSA,L]
RewriteRule ^modules/bd8ada48/(.*) /wp-content/plugins/pronamic-google-maps/$1 [QSA,L]
RewriteRule ^modules/5f200e92/(.*) /wp-content/plugins/regenerate-thumbnails/$1 [QSA,L]
RewriteRule ^modules/95e68aeb/(.*) /wp-content/plugins/revslider/$1 [QSA,L]
RewriteRule ^modules/d2ca83cd/(.*) /wp-content/plugins/smart-fields/$1 [QSA,L]
RewriteRule ^modules/49275286/(.*) /wp-content/plugins/special-recent-posts/$1 [QSA,L]
RewriteRule ^modules/91c45abf/(.*) /wp-content/plugins/ssl-insecure-content-fixer/$1 [QSA,L]
RewriteRule ^modules/cc9362fc/(.*) /wp-content/plugins/super-post/$1 [QSA,L]
RewriteRule ^modules/130b3c2f/(.*) /wp-content/plugins/taxonomy-metadata/$1 [QSA,L]
RewriteRule ^modules/9d02abed/(.*) /wp-content/plugins/testimonials-by-woothemes/$1 [QSA,L]
RewriteRule ^modules/699569ba/(.*) /wp-content/plugins/ux-featured-item/$1 [QSA,L]
RewriteRule ^modules/e2e2d62a/(.*) /wp-content/plugins/verde_plugin/$1 [QSA,L]
RewriteRule ^modules/dea2b53d/(.*) /wp-content/plugins/w3-total-cache/$1 [QSA,L]
RewriteRule ^modules/050c9a82/(.*) /wp-content/plugins/white-label-branding-multisite/$1 [QSA,L]
RewriteRule ^modules/356100f7/(.*) /wp-content/plugins/widget_area_manager/$1 [QSA,L]
RewriteRule ^modules/966d5f1f/(.*) /wp-content/plugins/woocommerce/$1 [QSA,L]
RewriteRule ^modules/578401be/(.*) /wp-content/plugins/woocommerce-gravityforms-product-addons/$1 [QSA,L]
RewriteRule ^modules/919aa75f/(.*) /wp-content/plugins/woocommerce-de/$1 [QSA,L]
RewriteRule ^modules/dd1beeed/(.*) /wp-content/plugins/woosidebars/$1 [QSA,L]
RewriteRule ^modules/bc4258c3/(.*) /wp-content/plugins/wp-front-end-editor/$1 [QSA,L]
RewriteRule ^modules/5bb3512d/(.*) /wp-content/plugins/wordpress-importer/$1 [QSA,L]
RewriteRule ^modules/0ae6edfa/(.*) /wp-content/plugins/menufication/$1 [QSA,L]
RewriteRule ^modules/83538fcd/(.*) /wp-content/plugins/wordpress-mu-domain-mapping/$1 [QSA,L]
RewriteRule ^modules/f01191ae/(.*) /wp-content/plugins/wordpress-seo/$1 [QSA,L]
RewriteRule ^modules/fde4393c/(.*) /wp-content/plugins/wp-optimize/$1 [QSA,L]
RewriteRule ^modules/2dc6abc0/(.*) /wp-content/plugins/wpallimport/$1 [QSA,L]
RewriteRule ^modules/b2ecce28/(.*) /wp-content/plugins/js_composer/$1 [QSA,L]
RewriteRule ^modules/8c1403a4/(.*) /wp-content/plugins/wp-clean-up/$1 [QSA,L]
RewriteRule ^modules/6433b762/(.*) /wp-content/plugins/wpdatatables/$1 [QSA,L]
RewriteRule ^modules/0531739f/(.*) /wp-content/plugins/yith-woocommerce-ajax-navigation/$1 [QSA,L]
RewriteRule ^modules/b8498019/(.*) /wp-content/plugins/yith-woocommerce-ajax-search/$1 [QSA,L]
RewriteRule ^modules/04016fe6/(.*) /wp-content/plugins/yith-woocommerce-wishlist/$1 [QSA,L]
RewriteRule ^modules/(.*) /wp-content/plugins/$1 [QSA,L]
RewriteRule ^template/(.*) /wp-content/themes/$1 [QSA,L]
RewriteRule ^(wp-content/themes/twentythirteen/screenshot\.png|readme\.html|license\.txt|wp-content/debug\.log|wp-includes/$) /nothing_404_404 [QSA,L]# END Hide My WP
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ – [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]December 2, 2013 at 4:49 pm #472HassanPost count: 955First please change New Upload Path to something else and update your htaccess
Next please provide all or a part of source code that have both a changed and not changed URL?
- This reply was modified 11 years, 1 month ago by Hassan.
December 2, 2013 at 10:50 pm #474kratos85Post count: 10If Domain mapping is enabled rewrite in html is Not working :/. When i use the original url lime mysite.com/subsite everything is fine. If i map this site so mynewdomain.com the rewrite inside html is Not working. Some ideas?
December 3, 2013 at 12:08 pm #484kratos85Post count: 10Something new?
December 4, 2013 at 5:48 pm #487kratos85Post count: 10Hello? Some lifesign from the support
December 5, 2013 at 8:05 am #488kratos85Post count: 10Okay changed in HMWP for uploads from /library to /data.
Nothing changed :(. This problem also concerns the html and url rename.
And problems are concerning to plugins folder rewrite too 🙁These are the settings:
Replace in HTML
wp-content%2Fuploads=data
wp-content%2Fplugins=modulesReplace URLs
wp-content/uploads=data
wp-content/plugins=modulesAnd here some sourcecode:
`<script type=’text/javascript’ src=’http://www.vitaamare.de/library/js/jquery/ui/jquery.ui.core.min.js’></script><script type=’text/javascript’ src=’http://www.vitaamare.de/library/js/jquery/ui/jquery.ui.widget.min.js’></script><script type=’text/javascript’ src=’http://www.vitaamare.de/library/js/jquery/ui/jquery.ui.position.min.js’></script><script type=’text/javascript’ src=’http://www.vitaamare.de/library/js/jquery/ui/jquery.ui.menu.min.js’></script><script type=’text/javascript’ src=’http://www.vitaamare.de/library/js/jquery/ui/jquery.ui.autocomplete.min.js’></script>
<script type=’text/javascript’ src=’https://maps.googleapis.com/maps/api/js?sensor=false’></script>
<script type=’text/javascript’ src=’/wp-content/plugins/eventON/assets/js/eventon_init_gmap.js’></script>
<script type=’text/javascript’ src=’http://www.vitaamare.de/wp-content/plugins/smart-fields/js/jquery-ui-i18n.js’></script>
<script type=’text/javascript’ src=’http://www.vitaamare.de/library/js/jquery/ui/jquery.ui.mouse.min.js’></script><script type=’text/javascript’ src=’http://www.vitaamare.de/library/js/jquery/ui/jquery.ui.slider.min.js’></script><script type=’text/javascript’>var the_ajax_script={“ajaxurl”:”https:\/\/www.vitaamare.de\/wp-admin\/admin-ajax.php”};</script>
<script type=’text/javascript’ src=’/wp-content/plugins/eventON/assets/js/eventon_script.js’></script>
<script type=’text/javascript’ src=’/wp-content/plugins/eventON/assets/js/eventon_gen_maps.js’></script>
<script type=’text/javascript’ src=’http://www.vitaamare.de/template/vita-amare/assets/js/plugins.js’></script>
<script type=’text/javascript’ src=’http://www.vitaamare.de/template/vita-amare/assets/js/main.js’></script>
<script type=’text/javascript’ src=’http://www.google.com/jsapi’></script><script type=’text/javascript’>var pronamic_google_maps_settings={“visualRefresh”:””,”other_params”:”sensor=false”};</script>
<script type=’text/javascript’ src=’http://www.vitaamare.de/wp-content/plugins/pronamic-google-maps/js/site.js’></script>
<script type=’text/javascript’ src=’http://www.vitaamare.de/wp-content/plugins/new-royalslider/lib/royalslider/jquery.royalslider.min.js’></script>December 5, 2013 at 2:43 pm #490HassanPost count: 955Oh sorry for delay,
Please provide login details and I’ll fix it ASAP.
December 5, 2013 at 3:11 pm #494kratos85Post count: 10This reply has been marked as private.December 6, 2013 at 9:39 am #495kratos85Post count: 10some news?
December 6, 2013 at 9:48 am #496HassanPost count: 955Was done.
Your config was good but there were two little problems with Replace URLs:
- You should use == instead = in Replace URLs
- You should add / at the end of first part to redirect folders
I just changed:
wp-content/uploads=data wp-content/plugins=modules
to this:
wp-content/uploads/==data wp-content/plugins/==modules
and seems it works now 🙂
- This reply was modified 11 years, 1 month ago by Hassan.
December 6, 2013 at 9:55 am #499HassanPost count: 955On more thing I disabled W3T cache modules to see source code easier,
I’ll re-enable cache modules within next few minutes.
UPDATE: DONE!
- This reply was modified 11 years, 1 month ago by Hassan.
December 6, 2013 at 10:16 am #501kratos85Post count: 10and now? all stylesheets are gone
December 6, 2013 at 10:51 am #503HassanPost count: 955I tested several blogs. Seems correct for me.
Which URLs have this problem?
December 6, 2013 at 12:35 pm #506kratos85Post count: 10What do you have changed? Only .htaccess?
December 6, 2013 at 1:49 pm #507HassanPost count: 955Yes, only Replace URLs and then update htaccess.
-
AuthorPosts
You must be logged in to reply to this topic.