301 redirect perment from static html...

User 1752831 Photo


Registered User
43 posts

Help needed:/ ~
I am trying to use 301 redirect permanent in my .htaccess file.
I want to redirect several different static .html pages to several different .php pages in the shopping cart created with sccp.

An Example:
http://www.mywebsite.com/page.html

redirect permanently to

http://www.mywebsite.com/shop/viewcateg … ?groupid=2

I can only find out how to redirect all the html files to the php files using .htaccess file but I do not want to do that.
Is there a way to redirect only certain html pages to certain php pages in the shopping cart using the .htaccess file?

Any help with accomplishing this much appreciated. :cool:
User 38401 Photo


Senior Advisor
10,951 posts

Hiya Sue,

If you have access to your cPanel for your server, you should have a Redirect setup in there that allows you to redirect any page(s) to any page(s) manually 1 by 1.
User 364143 Photo


Guest
5,410 posts

I believe that will just make htaccess entries.
CoffeeCup... Yeah, they are the best!
User 38401 Photo


Senior Advisor
10,951 posts

yep it will lol, but it's the easiest and fastest way I know when you don't know how to edit the htaccess file very well :)
User 289442 Photo


Registered User
161 posts

Sue wrote:
Help needed:/ ~
I am trying to use 301 redirect permanent in my .htaccess file.
I want to redirect several different static .html pages to several different .php pages in the shopping cart created with sccp.

An Example:
http://www.mywebsite.com/page.html

redirect permanently to

http://www.mywebsite.com/shop/viewcateg … ?groupid=2

I can only find out how to redirect all the html files to the php files using .htaccess file but I do not want to do that.
Is there a way to redirect only certain html pages to certain php pages in the shopping cart using the .htaccess file?

Any help with accomplishing this much appreciated. :cool:


If you don't have a cPanel on your host (as Jo Ann mentioned), or the host you have has a complicated way to implement file redirects, or you want to do it more yourself with more knowledge, then here is a very straight forward and pretty good tutorial for 301 redirects. It does cover your request exactly also.

http://www.tamingthebeast.net/articles3 … direct.htm

TomH
User 1752831 Photo


Registered User
43 posts

Thanks all!:)
Yes, great link TomH.
Just what I was looking for but didn't find myself...lol:rolleyes:
I was just doing a 301 redirect from html to php in .htaccess file but did not work.

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.