Title: htaccess RewriteRule
Last modified: August 22, 2016

---

# htaccess RewriteRule

 *  [Jay](https://wordpress.org/support/users/the_circle_pit/)
 * (@the_circle_pit)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/htaccess-rewriterule-3/)
 * Hello I wanted to redirect all of my links along with and items under the folder
   from [http://www.website.com/portfolioto](http://www.website.com/portfolioto)
   my home page [http://www.website.com](http://www.website.com).
 * Below is the RewriteRule I used.
 * RewriteRule ^portfolio/ [http://www.website.com](http://www.website.com) [R=301,
   L]
 * It worked, but It also place the [http://www.website.com](http://www.website.com)
   in front of the links in the items execepts of those portfolio items.
 * So now all the links are
    [http://www.website.com/http://www.website.com/tag/example](http://www.website.com/http://www.website.com/tag/example)
   and [http://www.website.com/www.facebook.com](http://www.website.com/www.facebook.com)
 * Is there a way to remove the first section([http://www.website.com/](http://www.website.com/))
   of those URL’s?
 * Thank you in advanced.

The topic ‘htaccess RewriteRule’ is closed to new replies.

## Tags

 * [htaccess](https://wordpress.org/support/topic-tag/htaccess/)
 * [rewriterule](https://wordpress.org/support/topic-tag/rewriterule/)
 * [url](https://wordpress.org/support/topic-tag/url/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [Jay](https://wordpress.org/support/users/the_circle_pit/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/htaccess-rewriterule-3/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
