sage icon indicating copy to clipboard operation
sage copied to clipboard

Cache Flushing / Clean URL's issue

Open expertpixels opened this issue 13 years ago • 1 comments

Hey just wondering if there is a fix for the clean url's issue when activating a theme via a localhost install ?

When activating the roots theme the theme does not seem to manually create a .htaccess file within the WP install directory, I am able to manually create one tho it's a little annoying trying to make the roots theme pick up the JS & CSS..

Currently i need to manually create a .htaccess file within the WP install dir and then in the wp admin i need to activate the roots theme.. then activate one of the default WP themes.. then activate roots once again to make my browser pick up the CSS / stylesheets and JS..

Is there a correct method to fix this ? it's not the biggest issue in the world for me, but for some people i design for and with they struggle to understand why the above methods need to be taken in order for a theme to work.

Regards, Darren

expertpixels avatar Jan 16 '13 17:01 expertpixels

sounds like your webserver doesn't have write permissions on your wordpress directory. roots uses built-in WP functionality to write to htaccess - on activation the permalinks are flushed which should force an update to your htaccess.

go to /wp-admin/options-permalink.php, do you have the following notice at the bottom?

If your .htaccess file were writable, we could do this automatically, but it isn’t so these are the mod_rewrite rules you should have in your .htaccess file. Click in the field and press CTRL + a to select all.

retlehs avatar Jan 16 '13 18:01 retlehs