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 7513367
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T00:09:50+00:00 2026-05-30T00:09:50+00:00

It seems that I’ll never get along with mod_rewrite… I’m in the typical scenario:

  • 0

It seems that I’ll never get along with mod_rewrite…
I’m in the typical scenario:

homepage_one.tld/impressum.php --> domain.tld?content=impressum
homepage_one.tld/projects.php --> domain.tld?content=projects
homepage_one.tld/projects/canvas.php --> domain.tld?content=projects&project=canvas

I’m developing offline, using Ubuntu Server Edition on an VMware. That means, the local domain for my homepage_one to test is: _http:///localhost:2180/homepage_one/index.php
Later it will be _http://homepage_one.tld.

 <Directory /var/www/homepage_one>
                RewriteEngine on
                RewriteRule ^([^/]*)\.php$ index.php?content=$1 [QSA,L]
                RewriteRule ^projects/(.*)\.php$ index.php?content=projects&project=$1 [QSA,L]
        </Directory>

All css / image links are *broken * now, when I’m asking for the url: _http://localhost:2180/homepage_one/projects/canvas.php
(It looks for “homepage_one/projects/canvas/style.css” instead of “homepage_one/style.css”

most answers at stackoverflow concerning this issue are: use absolute links. I tried it, but to test it offline, my absolute link would be /homepage_one/style.css and i would have to change ALL links, once I publish the website. I also tried to use the html-base tag. But this didn’t work eigther…. any ideas?

  • 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-05-30T00:09:52+00:00Added an answer on May 30, 2026 at 12:09 am

    Solution (thanks to @TerryE):

    Edit C:\Windows\System32\drivers\etc resp. /etc/hosts (linux)
    127.0.0.1  my_homepage1.vm
    127.0.0.1  my_homepage2.vm
    

    in my case, using port forwarding to different VM’s, I can reach them, as followed:

    my_homepage1.vm:2180 --> VM1
    my_homepage1.vm:2280 --> VM2
    

    now I can just use VirtualHosts, as on my production Server, and go with absolute links.

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

Sidebar

Related Questions

Seems,that very basic question. Anyway can't get the meaning of next definition from Spring
It seems that the installation link I get is broken. Someone know where can
Seems that Python lacks e-commerce solutions compared to PHP and C#. Any production-ready PayPal,
It seems that my implementation of toString() method in an Activity is never called
Seems that This will be an easy question for you but this problem is
Seems that even after unchecking the option in the PyDev/Debug preferenecs pane to launch
It seems that we can show layers and even use a different zPosition for
It seems that runClasses() doesn't terminate the code being tested even after the test
It seems that JavaScript's Date() function can only return local date and time. Is
It seems that often I find that my code when moving either from one

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.