• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

htaccess – Server Subdirectory With Different Name Than URL Subdirectory

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › htaccess – Server Subdirectory With Different Name Than URL Subdirectory

This topic is: not resolved

Tagged: htaccess

  • This topic has 1 reply, 2 voices, and was last updated 10 years, 8 months ago by SoZo.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • January 1, 2013 at 6:36 pm #8873
    noxbane
    Member

    So I have a client with an odd setup that I can't quite figure out and I thought someone here might know the answer. I'm not sure they want the site shared, so I'll use "mydomain.com" for the sake of explanation.

    Their wordpress URL is setup like http://mydomain.com/blog .

    However, on the server (Apache), the actual folder is called "wordpress" NOT  "blog".

    The .htaccess is located in the "wordpress" folder (full server path is /var/www/wordpress/) and looks like this:

    <code>

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /blog/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    </code>

    There is no .htaccess in /var/www/

    In General Settings they have this:

    Wordpress Address: http://mydomain.com/blog

    Site Address:  http://mydomain.com/blog

    This works fine on WordPress pages, posts and categories.  But some plugins (gravity forms, nextgen) will strip out the "blog" portion of the URL when using them.  So for example a Gravity Form will try to submit to http://mydomain.com instead of http://mydomain.com/blog which will cause an error.

    My guess is that .htaccess is configured wrong but .htaccess and regular expressions are my weak point and I'm hoping someone can help.

    January 26, 2013 at 3:35 pm #15099
    SoZo
    Member

    You'd be better off asking on the WP forums


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble