I have a domain http://www.mydomain.com. My root folder structure is like this.
-
Root
-Wordpress
i want to redirect all requests to wordpress folder.
I googled and wrote the file like this
RewriteEngine on
rewritecond %{http_host} http://mydomain.com/ [nc]
rewriterule (.*)$ http://mydomain.com/wordpress [r=301,nc]
I am now getting 404 File not found error.
i even tried to use another technique to create an index file and use a header('location:/wordpress1),This works well,but whenever I upload a theme in WordPress it gives me 500 Internal srver Error..
Anyone who can help me with this
Note:I am tagging php because they might use this file
RewriteCond $0 !^wordpress/
RewriteRule ^.*$ wordpress/$0
This is the best way to do this.