Url rewrite using htaccess?

You've got your ordering flipped : RewriteEngine On RewriteBase / RewriteRule test/index. Php/welcome/index test/mainpage. Html L Also, beware of the mainpage?

Because you've got it specified as a range (i.e. Any one character 'm', 'a', 'i', etc. Will match), and I think you meant to match the whole string.

Thanks for your reply . I tried this code but still the error occours – rohit Nov 11 at 11:56 Which directory is your . Htaccess file in?

If your . Htaccess is in the test directory, you'd need to pull the test/ portion out of the RewriteRule and change RewriteBase to /test – stevevls Nov 14 at 10:09.

You can add the following to . Htaccess RewriteEngine On RewriteBase /myname/ RewriteCond %{REQUEST_FILENAME}! -f RewriteCond %{REQUEST_FILENAME}!

-d RewriteRule ^(.*)$ index. Php? $1 L.

Your code reads as "If this matches a file, link, or directory, then do nothing and continue. " You need to skip the final rewrite rule in the case the file actually exists.

Your code reads as "If this matches a file, link, or directory, then do nothing and continue. " You need to skip the final rewrite rule in the case the file actually exists: RewriteCond %{REQUEST_FILENAME} -s OR RewriteCond %{REQUEST_FILENAME} -l OR RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^. *$ - S=1,NC,L RewriteRule ^.

*$ index. Php NC,L.

No change example. Com/auth/register still bringing up the same error – davykiash Apr 29 '10 at 19:04.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions