Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rewrite Rule for .htaccess Help

Status
Not open for further replies.

Krus1972

Programmer
Mar 18, 2004
145
US
My website is located at When loading the root domain, freetv.info, the website redirects to the url:
I would appreciate it if someone could help me with modifying my existing .htaccess file and/or writing a simple rewrite rule that will keep the browser on the root domain, freetv.info, and load the webpage while freetv.info is displayed in the address bar. The end result is to keep the browser on freetv.info while displaying the page.

My existing .htaccess file

Code:
# Block the include-only files.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^wp-admin/includes/ - [F,L]
RewriteRule !^wp-includes/ - [S=3]
RewriteRule ^wp-includes/[^/]+\.php$ - [F,L]
RewriteRule ^wp-includes/js/tinymce/langs/.+\.php - [F,L]
RewriteRule ^wp-includes/theme-compat/ - [F,L]
</IfModule>
<Files wp-config.php>
order allow,deny
deny from all
</Files>

# BEGIN WordPress
# The directives (lines) between "BEGIN WordPress" and "END WordPress" are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
RewriteRule /index.php/Main_Page / [L,QSA]
</IfModule>

# END WordPress

Thanks for any and all help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top