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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:21:06+00:00 2026-05-26T20:21:06+00:00

In my public_html I have a profile.php file and some links in this format

  • 0

In my public_html I have a profile.php file and some links in this format

domain.com/shop/index.php?c=amazon&id=2

that lead to the amazon shop with category id 2

In a folder inside public_html, named shop I have index.php that shows the products of the 2 category.

However instead of the above ugly link I want to have something in the format of

domain.com/shop/company/category-id
e.g. domain.com/shop/amazon/2

I don’t want to have profile.php and shop.php in the same folder because I have another RewriteRule in there.

What is the RewriteRule I have to use in this case of two variables? Thank you

  • 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-26T20:21:06+00:00Added an answer on May 26, 2026 at 8:21 pm

    You’ll want to create a .htaccess file in the shop directory that include the following:

    RewriteEngine On
    RewriteRule ^([^/]+)/(\d+)$ index.php?c=$1&id=$2
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a site with this simple structure: \public_html {files}.php \files \es For the
I have this .htaccess file in WordPress. It's located at /public_html/ (web root). I
Say I have a subdomain xxx.yyy.com running Apache. The files are stored in /home/someone/public_html/xxx
I am trying to get some profile information in my Facebook via PHP as
I have my routes configured like this in my global.asax routes.IgnoreRoute({resource}.axd/{*pathInfo}); routes.MapRoute( poems-by-profile, //
I have a directory called public_html/hammer/ (my CMS). I want to use the image
I have a following Kohana setup: All my files are placed under 'public_html/koh' My
Django newbie at work and I could use some pointers. I'm using django-profile and
I want to have only review from this JSON. var json = { provider:
I know that this is very common problem and I have gone through almost

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.