Tag Info

New answers tagged

2

Your server configuration seems to be correct. But you need to modify your mod_rewrite code. Remove leading / and make trailing slash optional by using /?$ in rewrite rule, so both http://example.com/2VMt2 and http://example.com/2VMt2/ URLs will work. RewriteEngine on RewriteRule ^([A-Za-z0-9-]+)/?$ index.php?image=$1 [NC,L]


0

I'm not quite sure what you're asking, but to achieve this style of popup I would suggest you look into jQuery. Other than that it's most likely basic CSS (one div spread across the whole page, background black with opacity, then above that again the div where the form actually is). On your image, the form is still HTML as far as I know.


2

In this case, where you are already rewriting the "pretty" URL to the "ugly/real" URL you can redirect the ugly URL to the pretty URL by checking against THE_REQUEST. This contains the original HTTP request, before any rewriting has occurred. Otherwise you are in danger of creating a rewrite loop when you rewrite back to the ugly URL. For example: ...


0

The WHMCS forums have a couple of suggestions. 9DollarDomains says: Here are some examples of manual SQL Queries that should work as a work around until this is fixed by WHMCS. This will set all you one year .com domains to renew at $12.99 UPDATE tbldomains SET recurringamount = "12.99" WHERE domain like "%.com" AND registrationperiod = "1"; ...


1

Just get _ga cookie - it is a string with dot separated values. You are looking for third value... public static function getGaCode() { // Check fo cookie $name = "_ga"; if (!isset($_COOKIE[$name])) { return null; } // Parse cookie _ga='<something>.<something>.<clientid>.<timestamp>'; return ...


1

There is no difference. There are different ways to set the same PHP configuration parameter. It's useful - for example - if you have a generic php.ini which gets loaded in all PHP-FPM pools, but in one of them you want to override a certain value - like memory_limit See http://php.net/manual/en/configuration.changes.php


1

Just remove that crap from .htaccess. These lines are meant to be used in a completely different setup than yours. Obviously, you have Apache's mod_php5 already installed, and it is used for your PHP files automatically. That's perfectly fine! No need for mod_cgi. However, if you really don't want to use mod_php, you should uninstall libapache2-mod-php5 ...


0

The Apache error log does track errors other than 404 errors. In the case of 500 errors, it shows you any error output from your scripts. cPanel must be hiding this information from you. I usually filter the access logs to see a single line for each error page that occurs. I tend to use the command line to tail and filter it like this: tail -F ...


0

You could put in a rewrite rule that redirects to remove the query string when it contains that parameter: RewriteEngine On RewriteCond %{QUERY_STRING} wpmp_switcher RewriteRule (.*) $1 [R=301,L] This code would go in your .htaccess file


0

Your extension has no runtime configuration options. If it cannot be controlled from php.ini, then your only option would be to un-install it and re-install it later.


1

This sounds like an issue with the hosting company in my opinion. Who are you using? You should be able to modify your php.ini file across the board or at least find someone with this option set so it won't throw an error every time. Just a thought.


5

LOOPING There are two methods to loop in PHP: for, and; foreach The PHP for Loop The for loop is used when you know in advance how many times the script should run. Syntax for (init counter; test counter; increment counter) { code to be executed; } Parameters: init counter: Initialize the loop counter value test counter: Evaluated for each loop ...


1

Once added the mod_rewrite rule in .htaccess it works regular as active , so you can add and use it . You can also ask your hosting company to enable mod rewrite rule for you in server that is much better for you


1

Check your server's apache and php logs for any error. It might help you to narrow down your problem. Besides PHP timeouts, there are also other timeouts in Apache and MySQL which might be causing your script to stop working after 60 seconds, FcgidIOTimeout and FcgidBusyTimeout (file: fcgid.conf) Ref: premature end of script connect-timeout of mysqld ...


1

Adding this line to your virtual host seems to work: php_value engine off <Directory "C:/xampp/htdocs/(path_to_directory)/dirname"> php_value engine off # other options </Directory> On Debian, the file would be located in the folder /etc/apache2/sites-available/


0

Googlebot parses the JavaScript in your source code for things that look like URLs. One of the criteria that it uses is "contains a slash". Having a slash in a JS string is enough to have Googlebot look for a file there. So if Googlebot is seeing SVLoZ/PWXWZ/fileadmin/fileadmi in the JavaScript of your source code (as you see yourself with wget), then ...


6

PHP scripts are not typically handled by the CGI module. They are usually handled by a separate PHP module with its own configuration options. This page has a few examples of syntax that should do the job for you. I expect that they would work either in your conf file or in .htaccess. Try: <Directory ...


0

If you do not want to show the content of a directory/folder when an index file does not exist you can configure the web server to disallow directory listing/indexing/browsing. For example, in Apache https://wiki.apache.org/httpd/DirectoryListings


0

Start with the apache error log This page has some further information, such as the default location on windows of the logfiles http://httpd.apache.org/docs/2.2/platform/windows.html


0

First go to : Default htaccess and use that default htaccess code for .htaccess file for your subdomain root. Also please verify following things : 1 - In apache config , see this option : AllowOverride All [It should be ALL not none] 2 - do you have mod_rewrite enabled 3 - .Htaccess file permission should be 644.


0

Web server software typically can be configured to look for a specific file or files in a directory to display to the browser if the browser isn't requesting a specific file from a directory. E.g., let's suppose your website is accessible via www.example.com. When the web server sees a request for www.example.com/a.txt, it will display the contents of a.txt. ...



Top 50 recent answers are included