Howdy, Stranger!

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


Shells Virtual Desktop
BMail.ag - Secure Email Service
Server.net
CPLicense.net
VPS Server
Buy VPN
Vultr
VMs for AI
HostDare
ReliableSite White-Label Dedicated Hosting for Resellers
InterServer VPS
BMail.ag - Secure Email Service
Best VPN
High-Performance Bare Metal Server Solutions
Karvl.com
Server Mania Cloud Hosting
DataWagon Hosting
AlphaVPS Hosting
Evoxt.com
Clouvider
VPS Hosting with NVMe
Residential IPs in the US & 4G Mobile Proxies in EU & US with Unlimited Bandwidth
ReliableSite White-Label Dedicated Hosting for Resellers
Rabisu - Hosting Solutions
Shells Virtual Desktop
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.