Htaccess redirection from old url to new url with parameters [Solved/Closed]

 Blocked Profile -
via htaccess in need help to redirect from old domain dirty to a clean new domain with parameters.
- new domain
- remove blog folder
- add .html at the end of article title
Original url:

New url:

Thank you for your helps.

4 replies

Thank you for sharing! I have a question though, is this a question of how, or a statement of work?
sorry, I don't get what you mean.

We are not certain of your "scope" of work.

Are you asking how to do this type of task on the service "htaccess"?

"You should avoid using .htaccess files completely if you have access to httpd main server config file".

It's kind of fun to do the impossible! -Walter Elias Disney

maybe this works, try this:
Redirect /olddirectory/oldfile.html

It's kind of fun to do the impossible! -Walter Elias Disney

work for me :

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$$1.html [R=301,L]
Blocked Profile
Thank you for sharing!

Subscribe To Our Newsletter!

The Best of CCM in Your Inbox

Subscribe To Our Newsletter!