Portal Home > Knowledgebase > Articles Database > .htaccess to change URLs?


.htaccess to change URLs?




Posted by kpmedia, 04-12-2013, 08:13 PM
I need some htaccess help. (RewriteRule) It's been so many years since I did anything like this that I've forgotten what to do. This is the source URL: I want to obscure that URL. Maybe: Something like that. Anything is fine. It doesn't have to be exactly like that. I just want it to mask the underlying tech to low-level user (99% of folks) Ideas?

Posted by zoid, 04-12-2013, 08:17 PM
Depending on how far you want it obfuscated, you could base64 encode it (or parts of it) and then simply redirect to the actual file.

Posted by kpmedia, 04-13-2013, 06:32 PM
Just basic obscuring through htaccess should be fine.

Posted by xubuntu69, 04-14-2013, 10:43 AM
this what i use to rewrite urls in oscommerce RewriteEngine on RewriteCond %{QUERY_STRING} cPath=[0-9_]+&products_id=([0-9_]+) [NC,OR] RewriteCond %{QUERY_STRING} manufacturers_id=[0-9_]+&products_id=([0-9_]+) [NC] RewriteRule (.*) product_info.php?products_id=%1 [R=301,L] It might help.

Posted by kpmedia, 04-14-2013, 09:36 PM
It might. What is the BEFORE and AFTER urls this produces?

Posted by kpmedia, 04-19-2013, 05:14 PM
Bump.

Posted by kpmedia, 06-11-2013, 11:59 PM
Bump. I still haven't figured this out. Lots of trial here, but not much to show for it/

Posted by kpmedia, 07-16-2013, 06:37 AM
Bump. /10char



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read


Language: