Posts Tagged ‘htaccess’

http://www.mydomain.com/abc2015

http://www.mydomain.com/event2015


RewriteEngine On

RewriteRule ^(.*)2015$ http://www.mydomain.com/redirect.php?year=2015&folder=$1 [R=301,L]

 

Redirect /myfolder https://www.google.co.in/#q=myfolder

Enable htaccess in apache

Posted: July 5, 2012 in PHP
Tags: , ,

Wamp Tray > Apache > httpd.conf :edit this file:
Find for below line:
;LoadModule rewrite_module modules/mod_rewrite.so

And change it to:

LoadModule rewrite_module modules/mod_rewrite.so