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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T18:28:13+00:00 2026-06-10T18:28:13+00:00

I have a dynamic content website and I want to redirect all non existed

  • 0

I have a dynamic content website and I want to redirect all non existed pages to index page but with the header showing 301 permanent redirect and not the 404 error.

I know that I can redirect with .htaccess

Errordocument 404 /index.php

But this will have the 404 status in the header, and I’d rather the header to show a 301 redirect.

Is this possible?

  • 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-06-10T18:28:15+00:00Added an answer on June 10, 2026 at 6:28 pm

    First of all, you shouldn’t. If some content is not found, the server should return 404; you should only return 301 only if the content has been moved.

    That said, it’s possible, using the mod_rewrite module.

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule .* index.php [R=301]
    

    This should redirect requests to URIs that aren’t files or directories to the index.php, with a 301 header.

    But then again, don’t. It’s guaranteed to confuse human visitors and search engines alike.

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

Sidebar

Related Questions

we have a static, non-wicket CMS website and we want to include a dynamic
I'm programming a website and on a page I have dynamic content. To be
I have a dynamic website - all content depends on users. As you can
I've created website with dynamic content, and I want google to know all my
I have a website in which the total dynamic content is very small (say
I need to produce a very simple website (no dynamic-content, 2-columns, header&footer) and I
I have 2 servers for my website Web Server For sending dynamic content, mostly
I have a website and I want to create a dynamic sitemap for it.
I have dynamic content in a div called txtresults like this: <div id=txtresults></div> This
I have two table cells, with dynamic content. Table cell one works fine, when

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.