Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


cPanel .htaccess URL Rewrite help !
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

cPanel .htaccess URL Rewrite help !

i need to change my URL using .htaccess file. my original URL is

http://www.mydomain.com/subfolder/index.php?var=new

i need to change it like this,

http://www.mydomain.com/subfolder/new

can you help me to do this using my .htaccess file in cPanel and what is the exact location to locate my .htaccess file.

Comments

  • see this maybe help u

  • @mdzareef : thank you very much for your help ...

    is there anyone can help me to do this ... :D

  • FritzFritz Veteran

    try this
    www.generateit.net/mod-rewrite/

  • @Fritz : URL rewrite is working good ... but the variables didn't give me the values i pass true the url ... it gives me 404.shtml for the variable echo.

  • FritzFritz Veteran
    edited June 2013

    hmm..have you tried combination of value and name instead?
    What configuration do you have from the tools?

    maybe you can try this

    RewriteEngine On
    RewriteBase /subfolder
    RewriteRule ^var/([^/]*)\.html$ /index.php?var=$1 [L]
    
  • yeah ... it's working ... thank you @Fritz

Sign In or Register to comment.