_Chris_

Well-Known Member
Oct 22, 2007
64
0
56
Hi all, can anyone here please post an example of a complete .htaccess file, including symlinks, the whole page, to include a permanent 301 redirect from example.com/here/index.php to example.com/there/index.php
 

_Chris_

Well-Known Member
Oct 22, 2007
64
0
56
Hi Infopro, as mentioned, I'm wanting to view an actual .htaccess file with all of the code included.
 

Infopro

Well-Known Member
May 20, 2003
17,113
507
613
Pennsylvania
cPanel Access Level
Root Administrator
Twitter
What's stopping you from creating one to look at exactly, that's whats confusing to me. I just created this one:
Code:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^example.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.example.com$
RewriteCond %{REQUEST_URI} !^/[0-9]+..+.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}.txt(?: Comodo DCV)?$
RewriteRule ^somefilename.php/?(.*)$ "https://example.com/someotherfilename.php$1" [R=01,L]
That server has AutoSSL enabled for this account.
 

_Chris_

Well-Known Member
Oct 22, 2007
64
0
56
Thanks, I was just trying to see a complete .htaccess file, with *all* the relevant code - ie, symlinks coding as well.