Tech Support Forum banner
Not open for further replies.
1 - 1 of 1 Posts

· Registered
1 Posts
In my webserver in www(root for index) i using the .htaccess

RewriteEngine On
RewriteCond %{HTTP_HOST} ^[URL="https://www.******************[/URL]
RewriteRule (.*) https://**************$1 [R=301,L]

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

RewriteEngine On
RewriteBase /
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index.php HTTP/
RewriteRule ^index.php$ https://****************** [R=301,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

<IfModule mod_expires.c>
# Enable expirations
ExpiresActive On
ExpiresByType text/html "access plus 2 days"
<IfModule mod_headers.c>
# Set XSS Protection header
Header set X-XSS-Protection "1; mode=block"

and in post folder(in www) i using the htaccess(for url rewriting:https://**************
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*)/(.*)/ post.php?id=$1&title=$2
RewriteRule (.*)/(.*) post.php?id=$1&title=$2

1. https://**************

and https://************ (Wrong url ) show same index page . I want to show 404 error page for wrong url.

2. how to I use https://*************** instead of https://*************** want to use post.php in root folder by adding two htaccess but menu is not working properply).

Please help me anyone.
1 - 1 of 1 Posts
Not open for further replies.