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

  • Home
  • SEARCH
  • 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 6334411
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T18:39:11+00:00 2026-05-24T18:39:11+00:00

just a quick one, I’m using this rule and it works fine: RewriteRule ^([^/.]+)$

  • 0

just a quick one, I’m using this rule and it works fine:

RewriteRule ^([^/.]+)$ /profile.php?id=$1

so whatever come to mysite.com/anything will be read as mysite.com/profile.php?id=anything
That’s all good.

Then I need to add another variable so I used:

RewriteRule ^([^/.]+)/([^/.]+)$ /profile.php?id=$1&vid=$2 

Which kind of works but it doesn’t load any css, js, external php…
I guess that’s why it’s looking in a different folder, I don’t know how to tell it get those other files from the root folder.

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-24T18:39:12+00:00Added an answer on May 24, 2026 at 6:39 pm

    That’s because you are creating virutal folders using the htaccess. If you want to load your CSS and JS properly, either use absolute paths or add ../ before your relative path (which means “one folder up”).

    Another possibility is to add <base href="www.example.com">. Which will cause all new requests (for images, external files, etc) to be relative to that path, and not the current address.

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

Sidebar

Related Questions

Just a quick one: what are peoples thoughts on using Action delegates for public
Just a quick one - I wrote a php script recently that dynamically creates
Hopefully this is just a quick one and I'm missing something simple... I've got
Just a quick one, Is there anyway to shorthand this? It's basically determining the
Just a quick one here. What are the benefits of using java.io.Console as opposed
This is just a quick one but I cant find what i need to
Just a quick question. I have one XML and I was hoping to tranform
Just a quick question: In an OOP MVC application, one key principle is the
just a quick query about safe/unsafe states in Dijkstra's Banker's algorithm ... If one
Just a quick one... How do I determine what interfaces a type implements? Cheers

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.