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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T23:01:16+00:00 2026-05-30T23:01:16+00:00

My mission is to achieve http://localhost/projectname/media/video from http://localhost/projectname/index.php?m=media&cmd=video and also http://localhost/projectname/home http://localhost/projectname/index.php?m=home Below the

  • 0

My mission is to achieve

http://localhost/projectname/media/video

from

http://localhost/projectname/index.php?m=media&cmd=video

and also

http://localhost/projectname/home

http://localhost/projectname/index.php?m=home

Below the files helps to achieve my mission

RewriteRule ^([^/]*)$ /projectname/index.php?m=$1 
RewriteRule ^([^/]*)/([^/]*)$ /projectname/index.php?m=$1&cmd=$2 

the thing is that any external files such as javascript and css would not be taken into play.

i know my alternative is to put this is htaccess

RewriteRule ^([^/]*)/cmd/([^/]*)$ /projectname/index.php?m=$1&cmd=$2 

which enables http://localhost/projectname/media/cmd/video

I would like to make it without the CMD. Any suggestions?

  • 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-30T23:01:17+00:00Added an answer on May 30, 2026 at 11:01 pm

    Change your rules to this:

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^([^/]*)/([^/]*)/?$ projectname/index.php?m=$1&cmd=$2 [L,QSA]
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^([^/]*)/?$ projectname/index.php?m=$1 [L,QSA]
    

    And make sure your js, css, images files are using absolute path not the relative ones. Which means their paths should either start with http:// or /.

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

Sidebar

Related Questions

In my router.php file I added this code. $route['mission'] = content/index/mission; Here as you
Currently, I have 20+ URLs on my site in this format http://www.example.net/content/index/mission I want
I have a long string from android Http get like this: {movies:[ {movieId:fmen71229238,eTitle:Mission: Impossible
I need some comparing and replacing code in PHP Our mission is to empower
Is it possible to use dispatchShell from a Controller? My mission is to start
I am having a Multi line string(NSSTRING) as below 11501 W SHAWNEE MISSION PKWY
I'm trying to figure out how to get the current space # from mission
I'm currently writing my own PHP Framework (for kicks, not for mission critical stuff)
My mission is to graduate from using PowerShell to create an instance of Outlook
Today I'm on a mission to remove little red X's from my django project

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.