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

  • Home
  • SEARCH
  • 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 4025378
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T10:50:21+00:00 2026-05-20T10:50:21+00:00

I am having a big problem, I checked the redirection of my domain here

  • 0

I am having a big problem, I checked the redirection of my domain here http://www.redirectcheck.com/ then the result was

"http://domain.com/sub"

HTTP/1.1 301 Moved Permanently Date: Thu, 03 Mar 2011 07:14:30 GMT Server: Apache/2.2.3 (CentOS) Location: http://www.domain.com/sub/ Vary: Accept-Encoding Content-Length: 326 Connection: close Content-Type: text/html; charset=iso-8859-1

"http://www.domain.com/sub/"

HTTP/1.1 301 Moved Permanently Date: Thu, 03 Mar 2011 07:14:31 GMT Server: Apache/2.2.3 (CentOS) Location: http://domain.com/sub/ Vary: Accept-Encoding Content-Length: 322 Connection: close Content-Type: text/html; charset=iso-8859-1

"http://domain.com/sub/"

HTTP/1.1 200 OK Date: Thu, 03 Mar 2011 07:14:31 GMT Server: Apache/2.2.3 (CentOS) X-Powered-By: PHP/5.1.6 Vary: Accept-Encoding Connection: close Transfer-Encoding: chunked Content-Type: text/html; charset=UTF-8

I wanted it to be like this:

When I go to “http://domain.com/sub” (no trailing slash) it should redirect to “http://domain.com/sub/”

And when I go to “http://www.domain.com/sub” (no trailing slash) it should redirect to “http://domain.com/sub/”

Is it possible to do that?

  • 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-20T10:50:22+00:00Added an answer on May 20, 2026 at 10:50 am

    Put the following into your document root .htaccess file:

    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^(www\.){0,1}.*[^/]$ [OR]
    RewriteRule ^(.*)$ http://domain.com/$1/ [R=301,L]
    

    Be aware though that other entries in your .htaccess file are likely to interfere with this, so you may want to remove some other entries.

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

Sidebar

Related Questions

i'm having a BIG problem that i don't know how to solve... my UIToolbar
I'm having a big problem when calling a web service from my WPF application.
we're having this big problem with our application. It's a rather large application with
Have a problem that seems easy on paper but i'm having a big problem
I'm having a big problem trying to get my head round how the selectable()
I was always wondering why it is a big deal having version control support
Having a problem getting a TreeView control to display node images. The code below
I'm having a problem in that I'm using an LdapConnection to make requests against
I'm having a problem positioning an absolute div outside a table, I'm not a
I am having a bit of a problem with a struct within a program

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.