WordPress.org

Support

Support » How-To and Troubleshooting » Rewrite stylesheet_url

Rewrite stylesheet_url

  • Mike

    @mike_vl

    Hi,

    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?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Mark Ratledge

    @songdogtech

    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.

    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..

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Rewrite stylesheet_url’ is closed to new replies.