• Plans & Pricing
  • Log in
  • Get started
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Newsletter
  • Professional Email
  • Website Design Services
  • Commerce
  • WordPress Studio
  • Enterprise WordPress 
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
  • Support Center
  • WordPress News
  • Business Name Generator
  • Logo Maker
  • Discover New Posts
  • Popular Tags
  • Blog Search
Get started
  • Sign up
  • Log in
About
  • Plans & Pricing
Products
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Newsletter
  • Professional Email
  • Website Design Services
  • Commerce
  • WordPress Studio
  • Enterprise WordPress  
Features
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
Resources
  • Support Center
  • WordPress News
  • Business Name Generator
  • Logo Maker
  • Discover New Posts
  • Popular Tags
  • Blog Search
Jetpack App
  • Learn more
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
Search
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
Forums / Issues while configuring the site URL and its redirection problems

Issues while configuring the site URL and its redirection problems

  • Unknown's avatar
    aadityajujagar · Member · Feb 27, 2024 at 7:19 am
    • Copy link Copy link
    • Add topic to favorites Add topic to favorites

    Need help from htaccess experts and WordPress gurus.

    My problem:

    My website is abc.com

    WordPress is installed in /wordpress folder

    1) If anyone requests abc.com in the browser, it automatically forwards to ‘abc.com/wordpress’. This is done using htaccess file and the website homepage opens normally. I would like to remove ‘/wordpress’ from the address bar. Meaning the browser should display ‘abc.com’ only instead of ‘abc.com/wordpress’.
    How can we acheive this?

    2) Also, for any internal links in the webiste, I would like to remove ‘/wordpress’ in the browser path. So, if anyone requests ‘Services’ webpage which can be accessed from homepage, they should see:
    ‘abc.com/services’ instead of ‘abc.com/wordpress/services’ in the address bar.

    At the moment, if someone requests ‘Services’ webpage from homepage, the browser directs to ‘abc.com/wordpress/Services’ but comes with an error:

    This page isn’t working
    abc.com redirected you too many times.
    Try deleting your cookies.
    ERR_TOO_MANY_REDIRECTS

    However, after navigating to the address bar and removing ‘wordpress’ text from this i.e. just typing ‘abc.com/Services’, this comes back with the normal ‘Services’ page displayed normally.

    Could someone please help me to resolve the above?

    My current htaccess file looks like this:

    RewriteEngine on RewriteCond %{HTTP_HOST} ^(www.)?abc.com$ RewriteCond %{REQUEST_URI} !^/wordpress/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /wordpress/$1 RewriteCond %{HTTP_HOST} ^(www.)?abc.com$ RewriteRule ^(/)?$ wordpress/index.php [L]

  • The topic ‘Issues while configuring the site URL and its redirection problems’ is closed to new replies.

Tags

  • account
  • currency

About this topic

  • In: Support
  • 1 participant
  • 0 replies
  • Last activity 2 years
  • Latest reply from aadityajujagar

Couldn't find what you needed?

Contact us

Contact us

Get answers from our AI assistant, with access to 24/7 expert human support on paid plans.

Browse our guides

Browse our guides

Find step-by-step solutions to common questions in our comprehensive guides.

WordPress.com

Products
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Professional Email
  • Website Design Services
  • WordPress Studio
  • Enterprise WordPress
Features
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
Resources
  • WordPress.com Blog
  • Business Name Generator
  • Logo Maker
  • WordPress.com Reader
  • Accessibility
  • Remove Subscriptions
Help
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
  • Developer Resources
Company
  • About
  • Press
  • Terms of Service
  • Privacy Policy
  • Do Not Sell or Share My Personal Information
  • Privacy Notice for California Users
DeutschEspañolFrançaisBahasa IndonesiaItalianoNederlandsPortuguês do BrasilSvenskaTürkçeРусскийالعربيةעִבְרִית日本語한국어简体中文繁體中文English

Mobile Apps

  • Download on the App Store
  • Get it on Google Play

Social Media

  • WordPress.com on Facebook
  • WordPress.com on X (Twitter)
  • WordPress.com on Instagram
  • WordPress.com on YouTube

Automattic

Automattic
Work With Us
    • WordPress.com Forums
    • Sign up
    • Log in
    • Copy shortlink
    • Report this content
    • Manage subscriptions