0

My folder structure is, I used htaccess for NO trailing slash at the end of each URL

-job.php to /job
-companies.php to /companies
-about.php to /about
-Admin_jobs(This is Admin Folder)

and My .htaccess file is

Options +FollowSymLinks -MultiViews

RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{THE_REQUEST} \s(.+?)/+[?\s]
RewriteRule ^(.+?)/$ /$1 [R=301,L]

RewriteRule ^([^\.]+)$ $1.php [NC,L]

RewriteCond %{HTTP_HOST} ^sitename.com [NC]
#redirect to www
RewriteRule ^(.*)$ http://www.sitename.com/$1 [L,R=301]

. I am trying to access my Admin_jobs/ folder then it was redirecting to my main site, www.example.com. I cannot access to My admin pages. Anybody is there to help me.

Olaf Dietsche
  • 72,253
  • 8
  • 102
  • 198
Ganga
  • 31
  • 4
  • There is nothing in your rules to redirect `Admin_jobs` to `www.example.com`. – Olaf Dietsche Jun 05 '17 at 10:48
  • I don,t want redirect. I need to access that folder. While I am typing www.example.com/Admin_jobs it was taking me to www.example.com – Ganga Jun 13 '17 at 11:39

0 Answers0