Forum Moderators: phranque

Message Too Old, No Replies

.htaccess question.

Question regarding .htaccess

         

Cinws

10:09 pm on Jun 11, 2010 (gmt 0)

10+ Year Member



Hello,

Currently I have the following URL structure:

http://www.mysite.com/admin/blog/penetration-project/

However, I want the URL to be seen as:

http://www.mysite.com/pages/blog/penetration-project/

And I was wondering how I would accomplish this via the .htaccess file?

Thanks.

g1smd

10:28 pm on Jun 11, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Link to the new style URL from the pages of your site. It is links that define URLs.

Set up a Rewrite from /pages/ URLs to the /admin/ filepath.

Additionally, set up a Redirect such that if /admin/ URLs are externally requested, user is redirect to a /pages/ URL.

The complete process and various code examples have been posted several thousand times before in this forum.