Jump to content

.htaccess rewrite and hide


ryland22

Recommended Posts

I need for requests to: mywebsite.com

 

to actually hit:

 

mywebsite.com/project

 

I don't want it to be transparent to the browser. The user should still see: mywebsite.com, even though they are hitting: mywebsite.com/project

 

I have tried the following in my .htaccess file with no luck:

 

RewriteRule %{HTTP_HOST} ^website\.com$ website.com/project$1 

 

RewriteRule ^website\.com(.*)$ website.com/project$1 

 

RewriteRule ^website\.com$ website\.com/project$1 

 

Any help is much appreciated!

Link to comment
https://forums.phpfreaks.com/topic/260842-htaccess-rewrite-and-hide/
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.