Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Forum: Fixing WordPress
    In reply to: .htaccess help!
    Thread Starter daschman

    (@daschman)

    Does anyone else have any thoughts regarding my previous posts?

    Forum: Fixing WordPress
    In reply to: .htaccess help!
    Thread Starter daschman

    (@daschman)

    To have my WP blog run from my website root directory, I transferred the .htaccess and the index.php files from the subdirectory WP is installed in to the webroot (as instructed on the option/configuration page).

    Additionally, I wrote a php upload form for my site. I had to configure the php.ini file to allow file access on my site so I could transfer files from the temp directory on the apache server to a directory in my website. After configuring the php.ini file I was instructed to drop this block of code into a .htaccess file on my webroot:

    Options +ExecCGI
    AddHandler php-cgi .php
    Action php-cgi /cgi-bin/php.cgi

    Therein lies the problem. The .htaccess already exists from WP with the following contents:

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

    # END WordPress

    If I put both blocks of code in the .htaccess file (regardless of the order), my WP page can’t load.

    So how can I keep the functionality of my WP blog to not run off of the subdirectory (www.site.com/wordpress) but also put in the new code for my php upload form?

    Forum: Fixing WordPress
    In reply to: .htaccess help!
    Thread Starter daschman

    (@daschman)

    I tried putting both blocks of code in the same .htaccess file and then it messes up my wordpress site.

    How would I go about separating the blocks so that wordpress works fine as well as my php.ini config code for a php upload form?

    CSS is so much more flexible that tables. Tables give you a very structured block format, but css allows for all different variations of positioning and properties. You can set so many different attributes to each different section (div/span) of a site using CSS.

    CSS also tends to load faster and be more efficient. You can reuse a layout or specific attributes across all pages of your site, as CSS stylesheets are imported rather than being internal to each separate page.

    As a rule of thumb, I tend to use CSS for all structural and positioning aspects of my sites. Anything you can do with tables can be recreated (most likely easier) using CSS. The only exception for me would be is if I want to display a “true” table of data, etc.

    WordPress styles use all CSS for the page positioning anyway, so why not take a look at the theme source files and learn CSS? It is very handy to know.

    [Sig moderated — see the forum rules, section E]

Viewing 4 replies - 1 through 4 (of 4 total)