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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:39:31+00:00 2026-05-28T03:39:31+00:00

I have a website and I’m trying to rewrite it’s url. It’s pretty simple,

  • 0

I have a website and I’m trying to rewrite it’s url.

It’s pretty simple, but i’m not understanding how to do it.

The pages are the next ones:

http://localhost/site/index.php?p=home, etc. home is a parameter, and rewrite should be like this: http://localhost/site/home.html

http://localhost/site/section.php?id=someid and i want it to be like http://localhost/site/the-name-of-the-section-from-database-SOMEID

http://localhost/site/product.php?id=someid and i want it to be like http://localhost/site/category-name/product-name-SOMEID

I think it’s simple, but I still don’t understand how to do it. Please, help me.

Thanks!

  • 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-28T03:39:31+00:00Added an answer on May 28, 2026 at 3:39 am

    Put these lines in your ROOT .htaccess:

    Options +FollowSymLinks -MultiViews
    RewriteEngine on
    
    RewriteRule ^site/(home)\.html/?$ site/index.php?p=$1 [L,QSA,NC]
    
    # Assuming hyphen is not in the section name
    RewriteRule ^site/.*-(.*)/?$ site/section.php?id=$1 [L,QSA,NC]
    
    # Assuming hyphen is not in the product name
    RewriteRule ^site/[^/]*/.*-(.*)/?$ site/product.php?id=$1 [L,QSA,NC]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this issue: I have WebSite with asp.net pages. http://desiis:90/WebSite1 In this webSite,
I have a website ( http://www.rtistree.com ) which has vertical scrollbar on some pages.
I have website developed in classic ASP . The URL is not SEO friendly
I have website www.xyz.com and it is having 3 pages a, b and c.
I have website, usually all looks fine but sometimes one div is on the
I have website on the server, which is not precompiled (with source code, so
I have website based on Umbraco 5. I have installed contact form plugin (http://cultivjupitercontact.codeplex.com/).
i am calling iframe on html page within it i have website url, i
I Have website I need to save a large amount of pages from. The
Situation: I have website which calls WCF Service and i'm trying to understand it..

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.