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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:14:15+00:00 2026-05-26T10:14:15+00:00

I had a Dynamic PHP website which I needed to convert into a static

  • 0

I had a Dynamic PHP website which I needed to convert into a static website to give to a client. I used wget to pull the files and it did exactly what I needed. The only problem is..my links before (the ones indexed in google) have no file extension. I used .htaccess to get rid of the .php file extension.

So one of my URL’s would look like this:
http://www.domain.com/about/

When I got a static version of the website, it changed all of my links to .html

That could be fine, as I could use htaccess to get rid of that file extension and so all of my links will be the same as before. Well, all of the internal linking in each page is linking to the .html version.

Is there a way with htaccess to direct users if they go to about.html it will take them to about with no extension? So all of my internal linking will still work?

Or is there any other suggestions you guys might have on how to handle this?

Here is the wget code I use:

wget -k -K  -E -r -l 10 -p -N -F -nH http://www.domain.com/

How can I get that to output .php files instead of .html?

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-26T10:14:16+00:00Added an answer on May 26, 2026 at 10:14 am

    You can add this to your .htaccess:

    RewriteRule ^([^\.]+)$ $1.html [NC,L]
    

    taken from: http://www.sicanstudios.com/how-to-remove-php-html-htm-extensions-with-htaccess/

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

Sidebar

Related Questions

I had this question solved: Define "dynamic" enum Which I needed to get some
I'm aware that serializing is used to convert data types into a storable format,
Here's the problem I'm trying to solve: I have a dynamic php-driven website that
I picked up a new-to-me client who had a site built in ASP.net (which
I had a Dynamic Web project which had a few @WebServlet annotations, all of
Was wondering if anyone had any smart approaches to creating dynamic vanity user urls
I have an application that uses window.open() to generate dynamic popups. Unfortunately, I've had
I had used Server Explorer and related tools for graphical database development with Microsoft
I am trying to create dynamic excel sheet, with the help of php using
I've had a hard timing learning rewrite rules in .htaccess files, so I was

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.