S
S
Sama Samsonov2018-02-03 11:55:53
WordPress
Sama Samsonov, 2018-02-03 11:55:53

How to hide url in wordpress?

Added a separate new folder with files to the uplads folder
To display it in the index.php file added

<?php $upload_dir = wp_upload_dir(); ?>
    <a href="<?=$upload_dir['baseurl'].'/new';?>">Перейти</a>

When I click the link, it opens at site/wp-content/uploads/new/
The link is working but how do I hide wp-content/uploads/ so that site/new/ is displayed

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sanekk94, 2018-02-03
@sanekk94

I think you need some kind of CNC plugin with a url replacement function. There are many of these in the plugin library.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question