Can be directly accessed *themes/newsmag/

Posted in: Newsmag
Post count: 2

Hi,

What I want is this link to be inaccessable: http://www.fitnesshealthylivinglifestyle.com/themes/newsmag/

Can you help me with this?

Thanks!

Post count: 9544

You can likely put an .htaccess file in there and redirect any queries for /themes/newsmag/index.php in that folder to yoursite.000 (home page).

You can’t make the directory totally inaccessible or theme won’t work.

If you’re already savvy enough to move it outside of the /wp-content/ folder, you should be able to setup an .htaccess file for that.

Post count: 23312

Hello raisencross,

I saw that the above link, now is accessible. I suppose that the problem was solved in meanwhile.

Thank you! @Chris

Post count: 2

@Catalin, yes it’s accessable. I want to be not accessable.


@Chris
S, can you give me the .htaccess code? I have tried, but it’s not working.

<Files ~ “\.php$”>
Order allow,deny
Deny from all
</Files>

Post count: 9544

is your theme directory actually at that location, or is that just an example of typing a page and WP generating a page vs a 404?

You might also simply rename index.php to index.html or something ?

Hm. Actually you do what that page accessible as it’s used by WordPress to generate default page templates.

  • This reply was modified 10 years by simchris.
  • This reply was modified 10 years by simchris.
Post count: 9544

Maybe change the file permission for index.php to read only for the site/wordpress and not the public. 644 or something like that?

Viewing 6 posts - 1 through 6 (of 6 total)
The forum ‘Newsmag’ is closed to new topics and replies.