Rewrite stylesheet_url (3 posts)

  1. Mike
    Posted 6 years ago #


    I have the following question:
    I would like to use http://www.mydomainname.nl/css/style.css point to the stylesheetpath, or rather I would like all the urls that point to the template directory changed this way so that the template directory structure is not immediately visible in the source.

    Is there a plugin out there for this or is thee anyone else who has succeeded in doing this?

  2. Mark Ratledge
    Forum Moderator
    Posted 6 years ago #

    You'd have to rewrite through .htaccess for the style sheet, but I think you're going to run into problems with WP core files looking for a style sheet in the usual place, namely wp-content/themes/, and not finding it.

    If you want to try and hide the fact that you're running WP, it's not easy, becuase there will be other clues in page source. All plugin URLs will show a WP path, as will feed URLS, etc, etc.

  3. Mark / t31os

    Posted 6 years ago #

    You'd be better off asking in either an apache forum or a regex related forum.

    What i believe you'll need and as songdogtech said above me is that you'll need a series of mod_rewrites...

    You'd need 2 sets of rules, one that rewrites the urls, and one that maps the new urls to the real locations..

Topic Closed

This topic has been closed to new replies.

About this Topic