Home Forums WordPress Plugins Hide My WP wp-content/uploads not renamed

This topic is: not resolved
Viewing 15 posts - 1 through 15 (of 19 total)
  • Author
    Posts
  • #471
    kratos85
    Post 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 folder

    here 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]

    #472
    Hassan
    Post count: 955

    First 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.
    #474
    kratos85
    Post count: 10

    If 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?

    #484
    kratos85
    Post count: 10

    Something new?

    #487
    kratos85
    Post count: 10

    Hello? Some lifesign from the support

    #488
    kratos85
    Post count: 10

    Okay 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=modules

    Replace URLs
    wp-content/uploads=data
    wp-content/plugins=modules

    And 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&gt;
    <script type=’text/javascript’ src=’https://maps.googleapis.com/maps/api/js?sensor=false’></script&gt;
    <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&gt;
    <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&gt;
    <script type=’text/javascript’ src=’http://www.vitaamare.de/template/vita-amare/assets/js/main.js’></script&gt;
    <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&gt;
    <script type=’text/javascript’ src=’http://www.vitaamare.de/wp-content/plugins/new-royalslider/lib/royalslider/jquery.royalslider.min.js’></script&gt;

    #490
    Hassan
    Post count: 955

    Oh sorry for delay,

    Please provide login details and I’ll fix it ASAP.

    #494
    kratos85
    Post count: 10
    This reply has been marked as private.
    #495
    kratos85
    Post count: 10

    some news?

    #496
    Hassan
    Post count: 955

    Was 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.
    #499
    Hassan
    Post count: 955

    On 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.
    #501
    kratos85
    Post count: 10

    and now? all stylesheets are gone

    #503
    Hassan
    Post count: 955

    I tested several blogs. Seems correct for me.

    Which URLs have this problem?

    #506
    kratos85
    Post count: 10

    What do you have changed? Only .htaccess?

    #507
    Hassan
    Post count: 955

    Yes, only Replace URLs and then update htaccess.

Viewing 15 posts - 1 through 15 (of 19 total)

You must be logged in to reply to this topic.