Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8874335
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T18:41:39+00:00 2026-06-14T18:41:39+00:00

mod_pagespeed rewrites my css links from link href=/css/file.css rel=stylesheet to something like: link href=http://example.com/css/file.css.pagespeed.ce.97987.css

  • 0

mod_pagespeed rewrites my css links from

link href=”/css/file.css” rel=”stylesheet”

to something like:

link href=”http://example.com/css/file.css.pagespeed.ce.97987.css” rel=”stylesheet”

The problem is that if file.css.pagespeed.ce.97987.css hasn’t been created in the pagespeed cache by one of the servers behind the load balancer it may not be found.

It does the same thing with .js files and images

Is it possible to access these files on the local server rather than asking the load balancer to serve them?

EDIT:

This has been solved by:

ModPagespeedEnableFilters trim_urls

Which rewrites to

link href=”/css/file.css.pagespeed.ce.97987.css” rel=”stylesheet”

EDIT 2:

This rewrote the hrefs in the a links and stripped out the base url from those, which isn’t good since I want them to redirect to the load balancer

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T18:41:41+00:00Added an answer on June 14, 2026 at 6:41 pm

    if you don’t have any directory rewrite rules in your .htaccess you can create a stickiness policy. this means that the elb holds a tcp connection to one instance of the scaling group for a defined time. further you have to add the stickiness policy to the listeners.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The below mod rewrite doesn't work.. For example with a url like http://www.mywebsite.com/category/general ..
Using mod_rewrite, how could I turn URLs that follow this pattern: http://example.com/index.php?id=14 Into this
Here's a dump of the stats provided my mod_pagespeed from one of my sites.
Using mod_rewrite I'd (ideally) like to capture a spacific ID from a URL in
I mod_rewrite my pages very similar to how SO does it. I have www.example.com/users/login/
I have some mod_rewrite rewrites that correctly redirect the URLs to a script. From
I noticed that when using mod_pagespeed on my site it updates my internal links.
I've used mod_rewrite in my application. So I have some pages like site.com/about/ and
I am using mod_rewrite in my PHP framework to redirect user-friendly links to one
I am trying to create a htaccess file for my website and the pageSpeed

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.