You're replying to a comment left by Anre that was posted on February 22, 2010

Hello Kyle, Thanks for comment
I’m using joomla 1.5.x

You're replying to a comment left by Anre that was posted on February 21, 2010

how to redirect
http://domain.com/index.php?/artice to http://domain.com/index.php/artice. I mean how i remove question mark after index.php

thanks

You're replying to a comment left by Kyle that was posted on February 21, 2010

Try this out:

RewriteRule ^index.php\?(.*)$ index.php$1 [L]

You're replying to a comment left by Anre that was posted on February 21, 2010

doesnt work

You're replying to a comment left by Kyle that was posted on February 22, 2010

Without knowing what CMS this is, it would probably be easier to just drop index.php from the URL and send all requests to that. Try one of the following:

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* index.php [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* index.php?/$0 [PT,L,QSA]

You're replying to a comment left by Kyle that was posted on February 22, 2010

Please refer to the following:

http://cwhurl.com/sgj9

You're replying to a comment left by George that was posted on March 28, 2010

Is it possible using htaccess to pass the variables, but strip them from the address bar/URL?

In other words, for a link such as:

http://XYZ.com/projects/project-01.php?tID=1&sID=1

to display as either:

http://XYZ.com/projects/project-01.php

or preferably:

http://XYZ.com/projects/project-01

but still pass through the variables? In this case the variables are passing through info to style the navigation text depending on where the user is in the site. Stripping the query disables this, so I need to pass the query, and then get rid of the ugliness.

You're replying to a comment left by Nancy that was posted on April 09, 2010

I have a blogger account that tells me I can link my posts to go to my website, but when I put the name of my website in to link so the blog shows up, it tells me something is wrong.
Is this something that should be configured thru the htaccess file?

You're replying to a comment left by pietr that was posted on April 15, 2010

Good article!
as you’re offering help:
with a vanilla install of magento I run into:
the links of a first install show this:
http://my.site.org/default/customer/account/login/
but they require this:
http://my.site.org/index.php/default/customer/account/login/

if I change this with htaccess do I fix someting which is broken elsware?

You're replying to a comment left by Scott that was posted on April 21, 2010

HI!  By default, the shared hosting servers at Hostgator require that a visitor type in the .html extension to bring up any page other than the default.  How could I set that so that it would go to the .html file by default without having to type it in.  Thanks!

You're replying to a comment left by RaMp6 that was posted on April 28, 2010

404 doesn’t work any more :S
this is my .htaccess:

ErrorDocument 500 /error.php?id=500
ErrorDocument 404 /error.php?id=404
ErrorDocument 401 /error.php?id=401
ErrorDocument 403 /error.php?id=403


RewriteEngine on
RewriteRule ^tutorials/([0-9]+)/$ /tutorials.php?id=$1
RewriteRule ^tutorials/([0-9]+)$  /tutorials/$1/ [R=301,L]

RewriteRule ^downloads/([0-9]+)/$ /downloads.php?id=$1
RewriteRule ^downloads/([0-9]+)$  /downloads/$1/ [R=301,L]

RewriteRule ^nieuws/([0-9]+)/$ /nieuws.php?id=$1
RewriteRule ^nieuws/([0-9]+)$  /nieuws/$1/ [R=301,L]


RewriteRule ^(.*)/$ /$1.php [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !(.*)/$
RewriteRule ^(.*)$ http://www.freehacks.nl/$1/ [R=301,L]

You're replying to a comment left by RaMp6 that was posted on April 28, 2010

now 404 works but my forum doesn’t

my new .htaccess:

ErrorDocument 500 /error.php?id=500
ErrorDocument 404 /error.php?id=404
ErrorDocument 401 /error.php?id=401
ErrorDocument 403 /error.php?id=403


RewriteEngine on
RewriteRule ^tutorials/([0-9]+)/$ /tutorials.php?id=$1
RewriteRule ^tutorials/([0-9]+)$  /tutorials/$1/ [R=301,L]

RewriteRule ^downloads/([0-9]+)/$ /downloads.php?id=$1
RewriteRule ^downloads/([0-9]+)$  /downloads/$1/ [R=301,L]

RewriteRule ^nieuws/([0-9]+)/$ /nieuws.php?id=$1
RewriteRule ^nieuws/([0-9]+)$  /nieuws/$1/ [R=301,L]

RewriteRule ^(.*)/$ /$1.php [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !forum/(.*)$
RewriteCond %{REQUEST_URI} !(.*)$
RewriteRule ^(.*)$ http://www.freehacks.nl/$1 [R=301,L]

You're replying to a comment left by Emma that was posted on May 31, 2010

Good Article… can anyone reply RaMp6 question?? As im waiting for that reply

You're replying to a comment left by RPN that was posted on June 10, 2010

how to remove the last characters in url?
from /sales/order/view/order_id/1/
to /sales/order/view/order_id/
but yet the correct page still loads.

Or have the /sales/order/view/order_id/1/ show random number or additional numbers within 1

The point is to hide the order_id number from customers who ordered.

You're replying to a comment left by Roulettecheat that was posted on June 22, 2010

Otroligt men *SANT*: Kasinoprogrammerare upptäcker fel i Casino Roulette Software och vinner 250 000€ med hemligt Roulette Cheat.

You're replying to a comment left by Owen English that was posted on June 27, 2010

Hi, I need to switch caching off for only one file on my site. This file is regularly updated and pulled out to users PCs by our app. But the cache is on and means that the old copies are being received. It’s one file http://www.medistat.net\public_html\newfiles\upgrade.sys that I need to disable the cahe on. How simple is this within .htaccess and what line/s do I need to add to that file??? Help!! Many thanks.

You're replying to a comment left by afrin that was posted on July 06, 2010

afrin

You're replying to a comment left by coach purses that was posted on July 07, 2010

very good, look forward to view your other articles.

You're replying to a comment left by amit that was posted on July 22, 2010

how i add an encoded code in ht access

like :— i encode id like 7 in encoded format
sewsdf234dfdf:2

RewriteRule
^index-activate-([a-zA-Z0-9]+)\.html$ index.php?action=activate&id;=$1 [L]