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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T02:57:05+00:00 2026-06-07T02:57:05+00:00

RewriteEngine On RewriteRule ^(.*)$ /snsd.html [R=301] I want all indexed pages in google to

  • 0
RewriteEngine On
RewriteRule ^(.*)$ /snsd.html [R=301]

I want all indexed pages in google to be 301 directed to a page called snsd.html

However, i keep getting a redirect loop error.

I think i need to put a condition, if page is not snsd.html then do the 301 redirect. how do i do this? 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-06-07T02:57:08+00:00Added an answer on June 7, 2026 at 2:57 am

    Something like this:

    RewriteEngine on
    RewriteCond %{REQUEST_URI} !^/snsd.html$
    RewriteRule ^(.*)$ /snsd.html [R=301]
    

    I took the example off http://wiki.apache.org/httpd/RewriteCond

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

Sidebar

Related Questions

I use right now: RewriteEngine on RewriteRule !^index.html http://samedomain.com [L,R=301] so that all inquires
Here's my code: RewriteEngine on RewriteRule page/(.*) index.php?url=$1 [NC] When I access page/ http://google.com/
My htaccess: RewriteEngine On RewriteRule ^(.*)/(.*)$ /index.php?cat=$1&page=$2 [L] Now my css is located at:
So have rewritten my ugly php URL to something prettier: RewriteEngine On RewriteRule ^main/photo([^/\.]+)/?.html$
I have this htaccess rule to redirect my page to data_parser.php RewriteEngine On RewriteRule
I have follwing code in .htaccess file Options +FollowSymLinks RewriteEngine on RewriteRule tricks tricks.php?show=all
I currently have this in my .htaccess file: Options +FollowSymLinks RewriteEngine On RewriteRule ^(.*)\.html$
I have this in my .htaccess file... RewriteEngine on RewriteRule ^/invite$ /invite.html It's meant
If i use: RewriteEngine On RewriteRule ^.* controller.php It would send all requests to
Here is my code for .htaccess RewriteEngine on RewriteRule (.*) index.html Problem : 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.