Hi,
here is my .htaccess rules:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^(.*)/(.*)$ index.php?var1=$1&item=$2&var2=%{REQUEST_URI} [NC,L]
RewriteRule ^(.*)$ index.php?var1=$1 [NC]
here is an url:
http://loc...
I am using codeigniter.
My products page shows all the products we have and then users can click on each product_name to get more details about that particular product. So, I have declared products as the class and product_name as a function within the product class - so I could get the url www.company.com/products/product_name.
When I...
So I have a script which returns a price for a product. However the price may or may not include trailing zeros so sometimes I might have:
258.22
and other times I might have
258.2
In the later case I need to add the trailing zero with jQuery. How would I go about doing this?
...
I use the following configuration for nginx: http://gist.github.com/340956
However, this configuration causes a No input file specified error with PHP. The only way I have been able to solve it is by altering this line:
fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
Note the "/" between $document_root and $fast...
Hello.
My /train directory is aliased to a script in httpd.conf by:
WSGIScriptAlias /train /some-path/../django.wsgi
And it works well, except for one problem. If a user goes to /train (with no trailing slash) it will not redirect him to /train/, but will just give him the right page. This is a problem because this way the relative lin...
I know this question was asked a number of times on this site alone, but browsing through the relevant posts I couldn't find a solution. Trying to remove multiple trailing slashes after domain. The following mod_rewrite expressions seem to work for URLs such as http://www.domain.com//path1///path2////, but do not work for domain//
Direc...
Hi,
Which is better for SEO and page rank?
mysite.com/directory/my-page
OR
mysite.com/directory/my-page/
I know the above two URLs are treated as two separate pages by search engines, but I'm stuck on deciding which format to consistently use and which is better.
Thanks,
Ham
...
following code is an example of text placed into a textarea from a database.
<textarea id="inputPane" cols="80" rows="40" class="pane">
<p>
some text here...
</p>
<p>
more text here...
</p>
</textarea>
using jQuery's .trim what is the actual jquery code to remove all leading and trailing whitespace and have the textarea disp...
I have a WCF REST 4.0 project based on the the WCF REST Service Template 40(CS). I'd like to expose simple service endpoint URLs without trailing slashes. For example:
CarService.cs
http://www.domain.com/cars - GET returns a list of all cars
http://www.domain.com/cars/123 - GET returns a single car with ID 123
TruckService.cs
http:/...