D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
realadss
/
gurgaon.jaipurpartyplanner.in
/
Filename :
.htaccess
back
Copy
RewriteEngine On # Redirect direct requests to .php files to clean URLs RewriteCond %{THE_REQUEST} \s/+(.+?)\.php[\s?] [NC] RewriteRule ^ /%1 [R=301,L] # Rewrite rule to map clean URLs to .php files if they exist RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}.php -f RewriteRule ^([^/.]+)$ $1.php [L] # Handle requests with two parameters (e.g., /page/param1/param2) # RewriteCond %{REQUEST_FILENAME} !-f # RewriteCond %{REQUEST_FILENAME} !-d # RewriteRule ^details/([^/]+)/([^/]+)/([^/]+)$ $1.details.php?product=$2&id=$3 [NC,L] # Rewrite rule to map any non-directory, non-file request to a .php file RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([^/.]+)$ $1.php [NC,L] # Redirect requests to /admin to the index.php inside the admin folder # RewriteRule ^admin/?$ admin/index.php [NC,L] # Handle any file requests within the admin folder by mapping them to .php files if necessary RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^admin/([^/.]+)$ admin/$1.php [NC,L] # Custom error handling: Redirect to a 404 error page when a page is not found # ErrorDocument 404 http://localhost/all_ecommerce/admin/404.php # decore-&-themes page RewriteCond %{REQUEST_FILENAME} !-f [NC] RewriteCond %{REQUEST_FILENAME} !-d [NC] RewriteRule ^decor-&-themes/([^/.]+)$ listing.php?category=$1 [NC,L] # decor/details.php/product detail page RewriteCond %{REQUEST_FILENAME} !-f [NC] RewriteCond %{REQUEST_FILENAME} !-d [NC] RewriteRule ^decor/([^/.]+)$ details.php?product=$1 [NC,L] # Games-&-activit RewriteCond %{REQUEST_FILENAME} !-f [NC] RewriteCond %{REQUEST_FILENAME} !-d [NC] RewriteRule ^games-&-activity/([^/.]+)$ games-&-activity.php?details=$1 [NC,L] # Blog RewriteCond %{REQUEST_FILENAME} !-f [NC] RewriteCond %{REQUEST_FILENAME} !-d [NC] RewriteRule ^blog/([^/.]+)$ blog-details.php?blog=$1 [NC,L]