Hi, I have been having an issue with my .htaccess file. I am fairly new to webdesign but have managed to figured out most other scripting problems but I still have no clue how to configure my .htaccess file without getting errors. I am hoping someone here can help me out.
First let me show you my current .htaccess file:
Code:
#
# mod_rewrite in use
#
RewriteEngine On
# Uncomment following line if you get 403 Forbidden Error
Options +FollowSymLinks
# Uncomment following line if your webserver's URL
# is not directly related to physival file paths.
# Update YourMamboDirectory (just / for root)
#RewriteBase /YourMamboDirectory
#
# Rules
#
#RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR]
RewriteCond %{REQUEST_FILENAME} !\.(jpg|jpeg|gif|png|css|js|pl|txt)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^theticketlodge\.com
RewriteRule (.*) http://theticketlodge.com/$1 [R=301,L]
Really, all i want to do is have my
Home - The Ticket Lodge - Discount Concert, Theater, and Sports Tickets redirect to
Home - The Ticket Lodge - Discount Concert, Theater, and Sports Tickets. I tried to insert some code snippets I picked up to do this (as you will see from my mashing) but when I did I got an error: "No input file specified" and it redirects
Home - The Ticket Lodge - Discount Concert, Theater, and Sports Tickets to
http://theticketlodge.com/index.php/.
Ultimately, I do not want an index.php anywhere. I want that to point to just
Home - The Ticket Lodge - Discount Concert, Theater, and Sports Tickets.
I also have a problem with 404 errors. I while back I had 404 errors sent to
Home - The Ticket Lodge - Discount Concert, Theater, and Sports Tickets through my hosting account at GoDaddy. I believe this modified my .htaccess file. After I found out that a 404 error page is good for
SEO I want to redirect it to my 404 error page.
If anyone can help me with these issues i would be very grateful. Please keep in mind that I have very little knowledge of the scripting in .htaccess files.
Thanks in advance!
gary