Go Back   Tech Support Forum > Design Forum > Web Serving and Management

User Tag List

Please help for my webserver htaccess

This is a discussion on Please help for my webserver htaccess within the Web Serving and Management forums, part of the Tech Support Forum category. In my webserver in www(root for index) i using the .htaccess RewriteEngine On RewriteCond %{HTTP_HOST} ^[URL="https://www.******************services.com[/URL] RewriteRule (.*) https://**************services.com/$1 [R=301,L]

Closed Thread
Thread Tools Search this Thread
Old 05-24-2018, 02:49 AM   #1
Registered Member
Join Date: May 2018
Posts: 1

In my webserver in www(root for index) i using the .htaccess

RewriteEngine On
RewriteCond %{HTTP_HOST} ^[URL="https://www.******************services.com[/URL]
RewriteRule (.*) https://**************services.com/$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://******************services.com/ [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://**************services.com/p...ory-management)
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*)/(.*)/ post.php?id=$1&title=$2
RewriteRule (.*)/(.*) post.php?id=$1&title=$2

1. https://**************services.com

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

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

Please help me anyone.
ceomdali is offline  
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
WebServer with RasPi
Hi guys, I have been setting up a RasPi as websever using rasbian and Apache, I have install GateOne a web based SSH portal, I was wondering for extra security if there was a way to enable htaccess on a port? For example if someone goes to https://MYIP:1111 they will be prompt with a htaccess...
Go The Power Linux Support 3 04-08-2015 07:32 PM
[SOLVED] BSOD Windows Webserver
Hi, I'm configuring a web server and suddenly start to have BSODs. I tried to unninstall almost all softwares I was configuring and the BSOD keep happening. I couldnt link the BSOD with a specific action.. sometimes it occurs even when nobody is acessing the server. Its a Intel Xeon E5620, 16...
guiklein BSOD, App Crashes And Hangs 7 02-22-2012 06:10 AM
Grab files outside webserver directory
Don't know if this will fit better in Web Servers or here, but I'm trying to create a file-sharing page, but all my files are gonna be hosted on a separate hard drive that's already mounted... Any way to get a file from outside the webserver directory Webserver: root/var/www/ Files:...
lildragon555 Web Design & Development 1 02-01-2012 12:52 AM
Webserver Load-Balancing and Redundancy
Hi Guys My company hosts multiple client websites and we are responsible for ensuring the sites are available 99.9% of the time all year round. Currently we use RoundRobinDNS for 3 webservers in 2 different locations: Webserver A & B are currently Load-balanced using microsoft's NLB and...
robbiecookie101 Windows Servers 2 08-28-2011 04:46 PM
webserver cannot access Internet
I have 1 DSL line connected to windows server 2008 r2 with 2 nic's IPV4,6. On the first nic IPV4 it's static 71.244.xx.xx with gateway and DNS's assigned and IPV6 is set to obtain address automatically. The second nic IPV4 it's defined as 192.168.xxx.x with the same gateway and DNS. All is good! I...
kenchin10352 Web Serving and Management 2 04-27-2011 12:47 PM

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is on
Smilies are on
[IMG] code is on
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Post a Question

» Site Navigation
 > FAQ
Powered by vBadvanced CMPS v3.2.3

All times are GMT -7. The time now is 09:14 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
vBulletin Security provided by vBSecurity v2.2.2 (Pro) - vBulletin Mods & Addons Copyright © 2020 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.1.0 (Pro) - vBulletin Mods & Addons Copyright © 2020 DragonByte Technologies Ltd.
Copyright 2001 - 2018, Tech Support Forum

Windows 10 - Windows 7 - Windows XP - Windows Vista - Trojan Removal - Spyware Removal - Virus Removal - Networking - Security - Top Web Hosts