in my header and other sections I would like to use 

```
<script src="/incs/js/script.js"></script>

```

While maintaining the default theme folder structure in server as below

```
/wp-content/themes/theme-name/incs/js/script.js

```

file need to be accessed via browser/html source if need be so that it hides **/wp-content/themes/theme-name**

```
http://website.com/incs/js/script.js

```

This is also applicable to images I may have under /incs/images/imagname.jpg

I've seen solutions where defining the directory located outside of theme folder... but need a solution that does this within.

Is this possible?

Thanks
['https://wordpress.stackexchange.com/questions/76593', 'https://wordpress.stackexchange.com', 'https://wordpress.stackexchange.com/users/16419/']
Nowadays I use the technique I describe in this Q: [Steps to Take to Hide the Fact a Site is Using WordPress?](https://wordpress.stackexchange.com/q/1507/12615).

Before that, I used the [Roots Theme method](http://benword.com/how-to-hide-that-youre-using-wordpress/), which is what I think you are looking for: 

> 
> This post contains information on how to clean up WordPress code output. The methods described below do not prevent actual fingerprinting and shouldn’t be looked at as any sort of security measure.
> 
> 
> 

Note that it doesn't work in Multisite or Child Themes.

---

I'll reproduce here the documentation I did for using the Roots method:

Modifying `.htaccess` Rewrite Rules
-----------------------------------

Large chunk of code directly from the Roots theme:  

<https://gist.github.com/4336843> [PasteBin mirror](http://pastebin.com/8C2gAb6C).  

The array `$roots_new_non_wp_rules` has to be adapted accordingly. 

Refresh permalinks
------------------

Go to `/wp-admin/options-permalink.php` and click `Save Changes`.

Load scripts from CDN and not from `/wp-includes/`
--------------------------------------------------

```
add_action( 'wp_enqueue_scripts', 'wpse_76593_scripts_custom' );

function wpse_76593_scripts_custom() {
        wp_deregister_script('jquery');
        wp_register_script('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js', false, '1.7.1', true);
        wp_enqueue_script( 'jquery' );
}

```

Search the theme for all style and script registers and enqueues.

style.css
---------

1. create a new file inside the folder "/css" named "style.css"
2. open the theme's `style.css`
3. select all declarations bellow the [theme file header](http://codex.wordpress.org/File_Header#Theme_File_Header_Example)
4. cut and paste in the file `/css/style.css`
5. save both
in short: `/your-theme/styles.css` will contain only the header information, and `/your-theme/css/styles.css` will contain all the styles

	* change all occurrences of `url('fonts/` with `url('../fonts/`
	* change all occurrences of `images/` with `../images/`

header.php
----------

Change the stylesheet link from 

```
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />

```

to 

```
<link rel="stylesheet" type="text/css" media="all" href="<?php echo get_template_directory_uri(); ?>/css/style.css" /> 

```

All theme files
---------------

Search for:

* `get_bloginfo('template_url')`
* `get_bloginfo('template_directory')`

and replace with: 

* `get_template_directory_uri()`

Testing
-------

Not sure about other browsers, but [Safari Activity Window](https://www.google.com/search?q=safari%20activity%20window&hl=es&safe=off&tbo=d&source=lnms&tbm=isch) is perfect to check all loaded files and its URLs.

Depending on the theme complexity, extra steps have to be taken.
Why dont you use bloginfo(); default wordpress functions

```
<?php bloginfo( $show ); ?> 

<script src="<?php bloginfo('template_directory'); ?>/incs/js/script.js"></script>

```

more info <http://codex.wordpress.org/Function_Reference/bloginfo>