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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:28:18+00:00 2026-05-27T23:28:18+00:00

Having an issue where the URL rewrite is running but the server will not

  • 0

Having an issue where the URL rewrite is running but the server will not display the contents. My .htaccess file is

    RewriteEngine On
    RewriteBase /
    RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /project\.php [NC]
    RewriteCond %{QUERY_STRING} id=([0-9]+) [NC]
    RewriteRule . project-%1.html? [R=301]

Thanks for your help!

EDIT: Sorry, here is some more info!

I want to rewrite

    www.siteurl.co.uk/project.php?id=82

to

    www.siteurl.co.uk/project-82.html

The code in the .htaccess rewrites the URL perfectly but the page does not display. I get a

    404 The requested URL /project-82.html was not found on this server. 

I hope that helps!

  • 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-27T23:28:19+00:00Added an answer on May 27, 2026 at 11:28 pm

    You only have one half of the solution, creating the pretty urls. What is missing is the other half, sending the pretty urls to an application for processing as below

    RewriteEngine On
    RewriteBase /
    RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /project\.php [NC]
    RewriteCond %{QUERY_STRING} id=([0-9]+) [NC]
    RewriteRule . project-%1.html? [R=301]
    
    #you need this rule to process your www.siteurl.co.uk/project-82.html request
    RewriteRule ^project-([0-9]+)\.html$ project.php?id=$1 [L,NC,QSA]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am having an issue with using an .htaccess file to rewrite my urls
I'm having an issue with a Flash/Flex erroring in Firefox but not IE. I
I am having an issue handling HTTP URL Connections that do not return data.
I'm having an issue after moving to a new server where my WordPress htaccess
I'm having an issue where a third segment in the url will cause ALL
I am having issue with my pagemethod + url rewrite. When using regular URL:
Having issues removing index.php? from the URL: http://localhost/index.php?/reset_password With htaccess file: # Customized error
Having an issue here that I have tried everything I can think of but
I'm having trouble figuring out how to solve this issue. I have a file
I'm having an issue with bad requests from certain search parameters. An example URL:

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.