WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Rewriting htaccess issue? (7 posts)

  1. arunciks
    Member
    Posted 3 years ago #

    I have multisite setup and having issue that links on the subdomain sites with different themes not working - 404.

    [Fri Jul 01 12:33:05 2011] [error] [client 134.241.x.x] File does not exist: /var/www/html/all-deals, referer: http://deals.x.com/

    I think the issue might be that php files have name_name.php and are converted by rewriting to name-name in the url?

    I am using standard htaccess file for subdomain multisite install:

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule . index.php [L]

    Thanks...

  2. I think the issue might be that php files have name_name.php and are converted by rewriting to name-name in the url?

    What php files are doign this?

    Do subdomains work outside of WP?

  3. arunciks
    Member
    Posted 3 years ago #

    seems that all php files...
    subdomains working because i can access them directly.. I suspect something wrong with permalinks or htaccess.. :(

    dualcoregroup.com the root site ... if you like to glance at it. :)

    Thanks..

  4. First off, go in and resave the permalinks for your subsites. Just cause soemtmies it needs a pants kick.

    Second...

    I think the issue might be that php files have name_name.php and are converted by rewriting to name-name in the url?

    THAT I don't understand. name_name.php makes no sense to me...

  5. arunciks
    Member
    Posted 3 years ago #

    Ipstenu thanks for the fast reply......

    I did resaved the permalinks for root and subdomains - no result..

    Regarding what I menat for php... Sorry for confusion..

    Lets say link in subsite http://classifieds.dualcoregroup.com/post-new-ad/

    suppose to link to subsite theme root located post_new_add.php

    http://classifieds.dualcoregroup.com/advanced-search

    to advanced_search.php

    Somehow seems that the translation/rewrite from advanced_search.php to advanced-search might be causing the issue?.. Or am I missing something somewhere in site settings.?.. :))

    Thanks.

  6. Okay, first up, drop .php from your URL. WordPress doesn't use 'em. If you have a plugin or whatever that's putting them in, remove it.

    The URL http://classifieds.dualcoregroup.com/post-new-ad/ DOES NOT point to post_new_ad.php, it actually points to dualcoregroup.com/index.php, which secretly handles everything. Shhhh.

    Also, there's nothing in WP that changes - to _ (I use - in my URLs all the time).

    Try setting permalinks to default ugly to test if that works. That your theme is showing with images indicates your .htaccess is fine, so it's probably something else.

  7. arunciks
    Member
    Posted 3 years ago #

    This seems to be theme code issue since the debug showed some deprecated methods..:) Thanks for help....

Topic Closed

This topic has been closed to new replies.

About this Topic