Jump to content

htaccess URL rewriting redirect question


Padgoi

Recommended Posts

I want my homepage to redirect to a folder named Test. 

So when someone goes to my index.html page, it should automatically redirect them to /Test/new.html.

I don't want to use a meta redirect.

Can anyone please help me, I'm not sure the correct .htaccess URL rewrite to redirect to this,

It's something like this:

 

RewriteEngine on

RewriteRule ^index\.html$ new.html

 

But instead of redirecting to new.html, I want it to redirect to /Test/new.html.

 

Any help please?

Link to comment
https://forums.phpfreaks.com/topic/61973-htaccess-url-rewriting-redirect-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.