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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T07:17:41+00:00 2026-06-08T07:17:41+00:00

I am using .htaccess ‘ RewriteRule to redirect a url to the proper page

  • 0

I am using .htaccess‘ RewriteRule to redirect a url to the proper page for a client, everything works fine, except for Rewriting the word catalogue! I get a 403 forbidden error.

This is my code:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^catalogue$ /catalogue.php
</IfModule>

This results in this:

enter image description here

Now, what is driving me crazy is, if i switch the code to RewriteRule ^catalog$ /catalogue.php or RewriteRule ^cataloguee$ /catalogue.php and browse to the respective url, the page displays without the error.

Any ideas why this is occuring?

  • 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-08T07:17:42+00:00Added an answer on June 8, 2026 at 7:17 am

    It looks like what’s happening is some kind of DirectorySlash functionality is kicking in (adds a trailing slash when it thinks you’re trying to access a directory). It’s probably better not to turn that off so just match against the URI with the trailing slash:

     RewriteRule ^catalogue/?$ /catalogue.php [L]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: How to add .php extension using .htaccess url rewriting? I want to
How to redirect in url by using htaccess in php? http://www.example.com/randomstring/2 i would like
How to redirect the url using .htaccess? Actual url is www.mywebsite.com/index.php/user/john is need to
I need to redirect a page like www.someone.com/2011/03/05 to sample.php?dt=2011/03/05 using htaccess and php,
What RewriteRule (using .htaccess / mod_rewrite ) should I use to redirect http://example.com/blog/ (with
I want to make this url redirect using .htaccess (linux/apache) .. I want to
I want to redirect http://www.yourdomain.com/page.php? or http://www.yourdomain.com/page.php?var=val to 404 error page using .htaccess .
I have been using .htaccess to redirect URL's on an old website to a
I am using .htaccess to redirect all requests (except to subdomains) from HTTP to
When i was trying to rewrite url using .htaccess i got my page css

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.