How do I re-write a single URL with .htaccess?

xoxxx

Regular Member
Joined
Oct 9, 2009
Messages
421
Reaction score
142
I want to make a single url appear differently in browsers.

Right now it is:
Code:
domain com/article-this-is-the-article-aweawe-1-i-ww.html

and I want it to be:
Code:
domain com/article-1.html


How do I create a re-write rule in my .htaccess for this?

Thanks!
 

reinie

Elite Member
Joined
Jan 16, 2009
Messages
1,583
Reaction score
1,045
I don't know much, but I have always just forwared it when i needed it changed...

Redirect /article-this-is-the-old-page.html /this-is-the-new-page.html

idk if you can just change it?? but again, I'm not a coder...
 

xoxxx

Regular Member
Joined
Oct 9, 2009
Messages
421
Reaction score
142
I dont want to redirect the url to a different one, I just want the current long url to appear shorter in the browser..
 
Top