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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T04:30:36+00:00 2026-06-10T04:30:36+00:00

I have a domain for example http://example.com and another domain http://reallylargerdomain name.com I want

  • 0

I have a domain for example

http://example.com 

and another domain

http://reallylargerdomain name.com

I want if sombody access http://example.com/projects then server should proxy data from other url.
For this i created following .htaccess file

Rewrite on
RewriteRule ^projects/$ http://reallylargedomainname.com [P]

this is not working but when i change it to following it works

Rewrite on
RewriteRule ^projects/$ http://reallylargedomainname.com [R=301,L]

any idea what’s going wrong?

  • 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-10T04:30:38+00:00Added an answer on June 10, 2026 at 4:30 am

    You need to make sure mod_proxy is loaded in your apache config. Without it, the P flag sends the proxy request but there’s nothing that can handle the target. It’s going to look something like this:

    LoadModule  proxy_module modules/mod_proxy.so
    

    The directory is obviously going to be tweaked to your paths if they are different.

    Additionally, note that without the L flag in your rule, the proxy request won’t be sent back into the processing pipeline until the rewrite engine is finished. So if you have other rules after the proxy rule, they will be applied before the proxy happens.

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

Sidebar

Related Questions

I have a page, URI looks like this: http://domain.example.com/Profiles/Profile.aspx?username=blah#blahtab When that fragment (#blahtab) is
I have a site that sits in a directory on a domain: http://www.example.com/site/ I
If I have domain name example.com , and if I set an A record
I have link for example domain.com/de/controler/action?param=value and I want make actionlink to keep same
I want to make my .htaccess file do this: From: http://www.domain.com/example -OR- http://domain.com/example To:
here is my configuration: http://domain.com (obviously fictitious name...) hosted on a server running Apache
I have some URL which is in CP-1251 i believe. For example: http://domain.com/Test -
We have a web site in the domain, let's name: http://website.com . It is
It's easier to be told by example. I have URLs like http://domain/product/view/id/ . How
I have test.yoursite.com parked on example.com and have a SSL multi-domain certificate. What I

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.