Skip to main content

301 Permanent redirects

Comments

9 comments

  • Infopro
    What problem are you facing? You can create a new htaccess with a 302 redirect simply by logging into your cPanel and adding one: cPanel > Domains > Redirects.
    0
  • _Chris_
    Thanks, am looking for an example page, to examine.
    0
  • Infopro
    Using cPanel to create one is the best way to go.
    0
  • _Chris_
    Thanks, am looking for an example page, to examine.

    Using cPanel to create one is the best way to go.

    Yep, in some cases, but not in this one.
    0
  • Infopro
    I'm unclear on your response. What is it you're after that you can't get by creating your own, via cPanel?
    0
  • _Chris_
    Hi Infopro, as mentioned, I'm wanting to view an actual .htaccess file with all of the code included.
    0
  • Infopro
    What's stopping you from creating one to look at exactly, that's whats confusing to me. I just created this one:
    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.
    0
  • _Chris_
    Thanks, I was just trying to see a complete .htaccess file, with *all* the relevant code - ie, symlinks coding as well.
    0
  • Infopro
    symlinks coding as well.

    Lots of resources on the Web for customizing your htaccess, here's one: perishablepress.com/stupid-htaccess-tricks/
    0

Please sign in to leave a comment.