.htaccess rewrite
-
I would like to create a redirect through my .htaccess file so that when people visit URL/employment it picks up the files from URL/wordpress/employment. Giving people the later link doesn’t look so good, but the main site is under construction so I don’t want to move the whole directory over and outside of the ‘wordpress’ folder. Is there a way to create this redirect? I tried the following in the .htaccess file in my main ROOT folder and it just gave me page errors:
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/employment/.*$
RewriteRule ^(.*)$ /employment/wordpress/ [L]When I tried to change the .htaccess in the /wordpress file it came up saying that access was denied. Thanks in advance!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘.htaccess rewrite’ is closed to new replies.