Forum Moderators: phranque
RewriteRule ^/hustleharder/(.*)$ /media-products/hustle-harder.html [L,R=301]
does not work to re-direct
http://example.com/hustleharder/HUSTLE_HARDER_Tribute.html
http://example.com/hustleharder/
to
http://example.com/media-products/hustle-harder.html
this is what cPanel writes if i tell it i want to send example.com.hustleharder/ (or any file in the folder) to example.com :
RewriteCond %{HTTP_HOST} ^example.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.example.com$
RewriteRule ^hustleharder\/index\.html$ "http\:\/\/example\.com\/" [R=301,L]
Did you really mean .com. or did you mean .com/ ?
RewriteRule ^/hustleharder/(.*)$ /media-products/hustle-harder.html [L,R=301] This wording would take anything in the directory (trailing slash) "hustleharder" and send them all to the file "hustle-harder.html". Is that what you intended?
This wording would take a request for any URL within the director (trailing slash) "hustleharder" and send them all to the single URL ending "hustle-harder.html".
RewriteEngine on will NOT be properly processed. still goes to home page. (but i can see it trys to first go to correct url)