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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T10:17:06+00:00 2026-06-10T10:17:06+00:00

I have a domain http://www.mydomain.com . My root folder structure is like this. Root

  • 0

I have a domain http://www.mydomain.com. My root folder structure is like this.

  • Root

    -Wordpress

i want to redirect all requests to wordpress folder.
I googled and wrote the file like this

RewriteEngine on
rewritecond %{http_host} http://mydomain.com/ [nc]
rewriterule (.*)$ http://mydomain.com/wordpress [r=301,nc] 

I am now getting 404 File not found error.
i even tried to use another technique to create an index file and use a header('location:/wordpress1),This works well,but whenever I upload a theme in WordPress it gives me 500 Internal srver Error..
Anyone who can help me with this
Note:I am tagging php because they might use this file

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

    RewriteCond $0 !^wordpress/
    RewriteRule ^.*$ wordpress/$0
    This is the best way to do this.

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

Sidebar

Related Questions

I have url http://www.domain.com/folder/?variable=1 i would like to do a mod redirect to index.cfm
I have this url: http://www.mydomain.com/index.html And want a rule to rewrite the above into
I have a domain name abc.mydomain.com This is a https URL ( http redirects
Hi guys I have this code that checks linkback: $reciprocal_linkback = reciprocal_linkback($contenturl,http://www.mydomain.com,1); if ($reciprocal_linkback==0)
Hi I have a zendframework project. Now it is running in my domain (http://www.mydomain.com).
I have a site that sits in a directory on a domain: http://www.example.com/site/ I
I have a System.Uri, e.g., var uri = new Uri(http://www.domain.com/foo/bar); How do I get
I have an array of patterns: $patterns= array( '#http://(www\.)?domain-1.com/.*#i', '#http://(www\.)?domain-2.com/.*#i', ... ); and I
I have some pdf files located on a http server: Like: http://domain.com/files/file1.pdf http://domain.com/files/file1.pdf http://domain.com/files/file1.pdf
I want validate a url that is a image e.g.: http://www.mydomain.com/image.jpg http://www.mydomain.com/image.png http://www.mydomain.com/image.jpeg http://www.mydomain.com/image.gif

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.