www.webdeveloper.com

Search:

Type: Posts; User: Scleppel

Page 1 of 16 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    39
    Views
    5,780

    People behind a NAT...

    People behind a NAT will have the same IP address (homes, businesses, schools, internet cafes).
  2. I think you can do it with the __call magic...

    I think you can do it with the __call magic method.
  3. Replies
    2
    Views
    3,036

    In a .htaccess file in your document root ...

    In a .htaccess file in your document root

    Options +FollowSymLinks

    RewriteEngine On

    # Remove .php.
    RewriteCond %{ENV:REDIRECT_STATUS} ^$
    RewriteCond %{SCRIPT_FILENAME} -f
    RewriteRule...
  4. Replies
    4
    Views
    2,917

    ...

    <IfModule> must have a "test" (the module).


    I'd guess you want mod_deflate and mod_expires respectively.
  5. Replies
    2
    Views
    3,184

    Are you using mod_rewrite or something for IIS?...

    Are you using mod_rewrite or something for IIS?
    Is it in a .htaccess file?

    Try

    Options +FollowSymLinks

    RewriteEngine On

    RewriteCond &#37;{QUERY_STRING} ^(.*&)?PageID=([0-9]+)(&.*)?$ [NC]
  6. Thread: URL rewrites

    by Scleppel
    Replies
    13
    Views
    4,287

    # If the request isn't for /admin.php (including...

    # If the request isn't for /admin.php (including CSS, images, JavaScript, etc.)
    RewriteCond %{REQUEST_URI} !^/admin\.php [NC]

    You could ignore existing files with

    RewriteCond...
  7. Thread: URL rewrites

    by Scleppel
    Replies
    13
    Views
    4,287

    Add a ? or an empty query string. $n from...

    Add a ? or an empty query string.


    $n from RewriteRules, %n from RewriteConds.


    Options +FollowSymLinks

    RewriteEngine On
  8. Thread: URL rewrites

    by Scleppel
    Replies
    13
    Views
    4,287

    There are a few errors with what you have. ...

    There are a few errors with what you have.

    %{REQUEST_URI} starts with a slash.
    C(hain) is not a RewriteCond flag.
    A RewriteRule matches a similar part of the URL to the value of REQUEST_URI. It...
  9. Replies
    16
    Views
    2,137

    Try Options +FollowSymLinks RewriteEngine...

    Try

    Options +FollowSymLinks

    RewriteEngine On

    # Check the PHP file exists.
    RewriteCond %{DOCUMENT_ROOT}/$1.php -f
    # Match any request (at least one character, optional trailing slash)....
  10. Thread: URL rewrites

    by Scleppel
    Replies
    13
    Views
    4,287

    Is it working? You could use RedirectMatch in...

    Is it working?

    You could use RedirectMatch in a .htaccess file in your document root

    RedirectMatch 302 ^/directory(/.*)?$ /
  11. Thread: URL rewrites

    by Scleppel
    Replies
    13
    Views
    4,287

    You want /directory/anything.db and ...

    You want /directory/anything.db and /directory/anything.php to be rewritten to /?

    Try the following in a .htaccess file in /directory

    Options +FollowSymLinks

    RewriteEngine On

    RewriteRule...
  12. Replies
    1
    Views
    3,112

    Then your CAPTCHA is implemented incorrectly. ...

    Then your CAPTCHA is implemented incorrectly.


    The HTTP Referer header is unreliable. If you block users typing the URL in the address bar of their browser you will block legitimate users that do...
  13. Replies
    1
    Views
    2,174

    For /prospects/1 to...

    For /prospects/1 to /prospects/profile.php?playerid=1, try the following in a .htaccess file in your document root

    Options +FollowSymLinks -MultiViews

    RewriteEngine On

    RewriteRule...
  14. Replies
    2
    Views
    2,970

    Do you have an index file or are you expecting a...

    Do you have an index file or are you expecting a directory index?
    What is your index file called?

    If you have an index file, try adding

    DirectoryIndex yourindexfile
    or if you don't try...
  15. Possibly (not tested)

    Possibly (not tested)

    <?php

    // Create an array from the REQUEST_URI parts.
    $uri_parts = explode('/', trim(current(explode('?', getenv('REQUEST_URI'))), '/'));
    $uri_parts_count =...
  16. Replies
    5
    Views
    1,840

    Unless the server-side language is running as CGI...

    Unless the server-side language is running as CGI an error is unlikely to cause a 500 error. You could ask in the appropriate forum to make sure, though.


    Causing a loop (it rewrites /abc to /abc...
  17. Replies
    5
    Views
    1,840

    Add the following to your .htaccess file and go...

    Add the following to your .htaccess file and go to /abc

    Options +FollowSymLinks

    RewriteEngine On

    RewriteRule ^abc /abc [QSA,L]
  18. Replies
    5
    Views
    1,840

    Apache ErrorDocuments are only sent when Apache...

    Apache ErrorDocuments are only sent when Apache encounters the error, not when PHP (or any other server-side language) sends a error status code. To test that it's working (it is) go to /%.
  19. Replies
    4
    Views
    2,550

    The problem with ^(.*)/?$ is that when...

    The problem with ^(.*)/?$ is that when mod_rewrite rewrites to the same directory the .htaccess file is in (ie. if you have /abc/.htaccess, rewriting from /abc/def to /abc/ghi will cause this...
  20. Replies
    5
    Views
    1,099

    None of the PHP is working? Or just the echoes? ...

    None of the PHP is working? Or just the echoes?

    Instead of

    <?php=$tablebg?>
    try

    <?php echo $tablebg; ?>
    or
  21. Replies
    3
    Views
    1,097

    Yes, you can. Regular expression tutorial....

    Yes, you can.

    Regular expression tutorial.
  22. Replies
    28
    Views
    2,850

    In a .htaccess file in your document root ...

    In a .htaccess file in your document root

    Options +FollowSymLinks

    RewriteEngine On

    RewriteRule ^my-images/([^/]+)$ /images/portfolio/imagethumb.php?s=$1&h=120 [L]
  23. Replies
    1
    Views
    1,475

    So what does happen? A 404 error? A forbidden...

    So what does happen? A 404 error? A forbidden error?

    Try adding

    Order allow,deny
    Allow from all
    to that <Directory> block.
  24. Replies
    1
    Views
    1,037

    RedirectMatch is for regular expressions, use...

    RedirectMatch is for regular expressions, use Redirect:

    Redirect 301 /~username http://www.newdomain.com
  25. This should do it: DirectoryIndex index.html...

    This should do it:

    DirectoryIndex index.html
    Options +FollowSymLinks

    RewriteEngine On

    RewriteRule ^([a-zA-Z0-9]+)$ $1.html [L]
Results 1 to 25 of 400
Page 1 of 16 1 2 3 4
HTML5 Development Center



Recent Articles